Opik API check failed: timed out #11731

Closed
opened 2026-02-21 19:03:14 -05:00 by yindo · 0 comments
Owner

Originally created by @filwu8 on GitHub (Mar 19, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

v1.0.1 version worked well, but after upgrading to v1.1.0 version, an error was reported, and the log is as follows:

Image

api-1 | 2025-03-19 14:18:05.128 INFO [Thread-448 (process_request_thread)] [_internal.py:97] - 172.23.0.11 - - [19/Mar/2025 06:18:05] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 -
api-1 | 2025-03-19 14:18:05.586 DEBUG [Thread-449 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002
api-1 | 2025-03-19 14:18:05.588 DEBUG [Thread-449 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "GET /plugin/4ae5752c-eada-494f-b83d-b7348d75ae0a/management/install/tasks?page=1&page_size=100 HTTP/1.1" 200 None
api-1 | 2025-03-19 14:18:05.590 INFO [Thread-449 (process_request_thread)] [_internal.py:97] - 172.23.0.11 - - [19/Mar/2025 06:18:05] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 -
api-1 | 2025-03-19 14:18:05.698 DEBUG [Thread-446 (process_request_thread)] [_trace.py:47] - connect_tcp.failed exception=ConnectTimeout(TimeoutError('timed out'))
api-1 | 2025-03-19 14:18:05.698 INFO [Thread-446 (process_request_thread)] [opik_trace.py:461] - Opik API check failed: timed out
api-1 | Traceback (most recent call last):
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
api-1 | yield
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 236, in handle_request
api-1 | resp = self._pool.handle_request(req)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request
api-1 | raise exc from None
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request
api-1 | response = connection.handle_request(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 101, in handle_request
api-1 | raise exc
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request
api-1 | stream = self._connect(request)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 124, in _connect
api-1 | stream = self._network_backend.connect_tcp(**kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp
api-1 | with map_exceptions(exc_map):
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit
api-1 | self.gen.throw(value)
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
api-1 | raise to_exc(exc) from exc
api-1 | httpcore.ConnectTimeout: timed out
api-1 |
api-1 | The above exception was the direct cause of the following exception:
api-1 |
api-1 | Traceback (most recent call last):
api-1 | File "/app/api/core/ops/opik_trace/opik_trace.py", line 458, in api_check
api-1 | self.opik_client.auth_check()
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/opik/api_objects/opik_client.py", line 134, in auth_check
api-1 | self._rest_client.check.access(
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/opik/rest_api/check/client.py", line 55, in access
api-1 | _response = self._client_wrapper.httpx_client.request(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/opik/rest_api/core/http_client.py", line 213, in request
api-1 | response = self.httpx_client.request(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 837, in request
api-1 | return self.send(request, auth=auth, follow_redirects=follow_redirects)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 926, in send
api-1 | response = self._send_handling_auth(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 954, in _send_handling_auth
api-1 | response = self._send_handling_redirects(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 991, in _send_handling_redirects
api-1 | response = self._send_single_request(request)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1027, in _send_single_request
api-1 | response = transport.handle_request(request)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 235, in handle_request
api-1 | with map_httpcore_exceptions():
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit
api-1 | self.gen.throw(value)
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
api-1 | raise mapped_exc(message) from exc
api-1 | httpx.ConnectTimeout: timed out
api-1 | 2025-03-19 14:18:05.701 INFO [Thread-446 (process_request_thread)] [_internal.py:97] - 172.23.0.11 - - [19/Mar/2025 06:18:05] "PATCH /console/api/apps/d7a8b0d5-5b07-45c2-abf6-5ecbbf678a8a/trace-config HTTP/1.1" 400 -

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @filwu8 on GitHub (Mar 19, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.1.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce v1.0.1 version worked well, but after upgrading to v1.1.0 version, an error was reported, and the log is as follows: ![Image](https://github.com/user-attachments/assets/bcfaa074-67dd-4b64-9bec-fd2aef5f8cfe) api-1 | 2025-03-19 14:18:05.128 INFO [Thread-448 (process_request_thread)] [_internal.py:97] - 172.23.0.11 - - [19/Mar/2025 06:18:05] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 - api-1 | 2025-03-19 14:18:05.586 DEBUG [Thread-449 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002 api-1 | 2025-03-19 14:18:05.588 DEBUG [Thread-449 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "GET /plugin/4ae5752c-eada-494f-b83d-b7348d75ae0a/management/install/tasks?page=1&page_size=100 HTTP/1.1" 200 None api-1 | 2025-03-19 14:18:05.590 INFO [Thread-449 (process_request_thread)] [_internal.py:97] - 172.23.0.11 - - [19/Mar/2025 06:18:05] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 - api-1 | 2025-03-19 14:18:05.698 DEBUG [Thread-446 (process_request_thread)] [_trace.py:47] - connect_tcp.failed exception=ConnectTimeout(TimeoutError('timed out')) api-1 | 2025-03-19 14:18:05.698 INFO [Thread-446 (process_request_thread)] [opik_trace.py:461] - Opik API check failed: timed out api-1 | Traceback (most recent call last): api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions api-1 | yield api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 236, in handle_request api-1 | resp = self._pool.handle_request(req) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request api-1 | raise exc from None api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request api-1 | response = connection.handle_request( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 101, in handle_request api-1 | raise exc api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request api-1 | stream = self._connect(request) api-1 | ^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 124, in _connect api-1 | stream = self._network_backend.connect_tcp(**kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp api-1 | with map_exceptions(exc_map): api-1 | ^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__ api-1 | self.gen.throw(value) api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions api-1 | raise to_exc(exc) from exc api-1 | httpcore.ConnectTimeout: timed out api-1 | api-1 | The above exception was the direct cause of the following exception: api-1 | api-1 | Traceback (most recent call last): api-1 | File "/app/api/core/ops/opik_trace/opik_trace.py", line 458, in api_check api-1 | self.opik_client.auth_check() api-1 | File "/app/api/.venv/lib/python3.12/site-packages/opik/api_objects/opik_client.py", line 134, in auth_check api-1 | self._rest_client.check.access( api-1 | File "/app/api/.venv/lib/python3.12/site-packages/opik/rest_api/check/client.py", line 55, in access api-1 | _response = self._client_wrapper.httpx_client.request( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/opik/rest_api/core/http_client.py", line 213, in request api-1 | response = self.httpx_client.request( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 837, in request api-1 | return self.send(request, auth=auth, follow_redirects=follow_redirects) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 926, in send api-1 | response = self._send_handling_auth( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 954, in _send_handling_auth api-1 | response = self._send_handling_redirects( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 991, in _send_handling_redirects api-1 | response = self._send_single_request(request) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1027, in _send_single_request api-1 | response = transport.handle_request(request) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 235, in handle_request api-1 | with map_httpcore_exceptions(): api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__ api-1 | self.gen.throw(value) api-1 | File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions api-1 | raise mapped_exc(message) from exc api-1 | httpx.ConnectTimeout: timed out api-1 | 2025-03-19 14:18:05.701 INFO [Thread-446 (process_request_thread)] [_internal.py:97] - 172.23.0.11 - - [19/Mar/2025 06:18:05] "PATCH /console/api/apps/d7a8b0d5-5b07-45c2-abf6-5ecbbf678a8a/trace-config HTTP/1.1" 400 - ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:03:14 -05:00
yindo closed this issue 2026-02-21 19:03:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11731