Error On connecting to Sonnet model via OpenAILike (not consistent occuring randomly ) #3085
user1500177
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
{
"exception.type": "openai.APIConnectionError",
"exception.escaped": "False",
"exception.message": "Connection error.",
"exception.stacktrace": "Traceback (most recent call last):\n File "/usr/app/.venv/lib/python3.13/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions\n yield\n File "/usr/app/.venv/lib/python3.13/site-packages/httpx/_transports/default.py", line 394, in handle_async_request\n resp = await self._pool.handle_async_request(req)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request\n raise exc from None\n File "/usr/app/.venv/lib/python3.13/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request\n response = await connection.handle_async_request(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n pool_request.request\n ^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request\n raise exc\n File "/usr/app/.venv/lib/python3.13/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request\n stream = await self._connect(request)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpcore/_async/connection.py", line 124, in _connect\n stream = await self._network_backend.connect_tcp(**kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp\n return await self._backend.connect_tcp(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<5 lines>...\n )\n ^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp\n with map_exceptions(exc_map):\n ~~~~~~~~~~~~~~^^^^^^^^^\n File "/usr/local/lib/python3.13/contextlib.py", line 162, in exit\n self.gen.throw(value)\n ~~~~~~~~~~~~~~^^^^^^^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions\n raise to_exc(exc) from exc\nhttpcore.ConnectError: [Errno -2] Name or service not known\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File "/usr/app/.venv/lib/python3.13/site-packages/openai/_base_client.py", line 1604, in request\n response = await self._client.send(\n ^^^^^^^^^^^^^^^^^^^^^^^^\n ...<3 lines>...\n )\n ^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpx/_client.py", line 1629, in send\n response = await self._send_handling_auth(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<4 lines>...\n )\n ^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpx/_client.py", line 1657, in _send_handling_auth\n response = await self._send_handling_redirects(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<3 lines>...\n )\n ^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects\n response = await self._send_single_request(request)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpx/_client.py", line 1730, in _send_single_request\n response = await transport.handle_async_request(request)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpx/_transports/default.py", line 393, in handle_async_request\n with map_httpcore_exceptions():\n ~~~~~~~~~~~~~~~~~~~~~~~^^\n File "/usr/local/lib/python3.13/contextlib.py", line 162, in exit\n self.gen.throw(value)\n ~~~~~~~~~~~~~~^^^^^^^\n File "/usr/app/.venv/lib/python3.13/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions\n raise mapped_exc(message) from exc\nhttpx.ConnectError: [Errno -2] Name or service not known\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File "/usr/app/.venv/lib/python3.13/site-packages/openinference/instrumentation/openai/_request.py", line 398, in call\n response = await wrapped(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/app/.venv/lib/python3.13/site-packages/openai/_base_client.py", line 1636, in request\n raise APIConnectionError(request=request) from err\nopenai.APIConnectionError: Connection error.\n"
}
Could any tell me what could be the possible reasons FOR these error , it not reproducable , TILL yeasterday all was OK... the app is up for more than 4 days - NO. No code changes were made.
Beta Was this translation helpful? Give feedback.
All reactions