Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network error still exist #1679

Open
SaschaValentin opened this issue Jan 30, 2025 · 10 comments
Open

Network error still exist #1679

SaschaValentin opened this issue Jan 30, 2025 · 10 comments
Labels

Comments

@SaschaValentin
Copy link

Hi, i´ve done all of the proposals to solve the network error (deleted the secrets.toml, changed the base_url) but it doesn´t work. Sykvern-UI runs but a after a few seconds there´s the network error as you can see in this video:

firefox_gUC1cNXE3m.mp4

Any ideas what is wrong with my installation?

@suchintan
Copy link
Contributor

is your skyvern-server running and exposed to the front-end?

https://github.com/Skyvern-AI/skyvern/blob/main/docker-compose.yml#L97

I think you'll need to update these 2 (or 3) env flags:

      - VITE_WSS_BASE_URL=ws://localhost:8000/api/v1
    #   - VITE_API_BASE_URL=http://localhost:8000/api/v1
    #   - VITE_SKYVERN_API_KEY=

@SaschaValentin
Copy link
Author

I´m afraid but yes, that is also done.

Here are all the steps I made:

  1. in .env I´ve changed ENABLE_OPENAI=true and OPENAI_API_KEY="mysecretkey"
  2. in docker-compose.yml I´ve uncommented
  3. pointed the domain "skyvern.mediacomvalentin.de" to skyvern-ui at port 8080

The results you see in the video.

Copy link
Contributor

The API base needs its own port. The default (via docker) is port 8000, so you should expose api-skyvern.mediacomvalentin.de and route that to port 8000 by default

@SaschaValentin
Copy link
Author

OMG. Can´t tell you how happy you made me. That was the only fault. It´s running. So many thanks @suchintan.

@SaschaValentin
Copy link
Author

Maybe I rejoiced too soon. Some setting doesn't seem to be working yet. When I try to run one of the example tasks it aborts after five repeated attempts. Here is the log...

Image

@SaschaValentin
Copy link
Author

Maybe one more hint on what´s wrong: When I access the address "skyvernapi.mediacomvalentin.de", this comes up...

Image

I think it should be some true statement or something??

@SaschaValentin
Copy link
Author

SaschaValentin commented Jan 30, 2025

Here is the log for the example task:

skyvern-1 | 2025-01-30T15:58:56.041479Z [info ] Created new task organization_id=o_354614829439139840 proxy_location=RESIDENTIAL task_id=tsk_354633457343529112 url=https://news.ycombinator.com/
skyvern-1 | 2025-01-30T15:58:56.042029Z [info ] Executing task using background task executor task_id=tsk_354633457343529112
skyvern-1 | 2025-01-30T15:58:56.093204Z [info ] Creating browser state for task task_id=tsk_354633457343529112
skyvern-1 | 2025-01-30T15:59:01.359005Z [info ] browser console log is saved log_path=/data/log/2025-01-30/ae57583a-d09a-4939-a05a-5206e4e827ae.log
skyvern-1 | 2025-01-30T15:59:01.605550Z [info ] Trying to navigate to https://news.ycombinator.com/ and waiting for 5 seconds. retry_time=0 url=https://news.ycombinator.com/
skyvern-1 | 2025-01-30T15:59:02.474951Z [info ] Page loading time loading_time=0.8691709041595459 url=https://news.ycombinator.com/
skyvern-1 | 2025-01-30T15:59:07.475509Z [info ] Successfully went to https://news.ycombinator.com/ retry_time=0 url=https://news.ycombinator.com/
skyvern-1 | 2025-01-30T15:59:07.488740Z [info ] Starting agent step step_id=stp_354633457343529114 step_order=0 step_retry=0 task_id=tsk_354633457343529112
skyvern-1 | 2025-01-30T15:59:07.488969Z [info ] Updating step in db diff={'status': {'old': <StepStatus.created: 'created'>, 'new': <StepStatus.running: 'running'>}} step_id=stp_354633457343529114 task_id=tsk_354633457343529112
skyvern-1 | 2025-01-30T15:59:07.497281Z [info ] Waiting for 5 seconds before scraping the website.
skyvern-1 | 2025-01-30T15:59:21.511720Z [info ] Scraped website num_elements=671 step_id=stp_354633457343529114 step_order=0 step_retry=0 task_id=tsk_354633457343529112 url=https://news.ycombinator.com/
skyvern-1 | 2025-01-30T15:59:21.645733Z [info ] Calling LLM API llm_key=OPENAI_GPT4O model=gpt-4o
skyvern-1 |
skyvern-1 | Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
skyvern-1 | LiteLLM.Info: If you need to debug this error, use litellm.set_verbose=True'. skyvern-1 | skyvern-1 | 2025-01-30T15:59:23.273633Z [error ] Unexpected exception in agent_step, marking step as failed step_id=stp_354633457343529114 step_order=0 step_retry=0 task_id=tsk_354633457343529112 skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions skyvern-1 | yield skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 377, in handle_async_request skyvern-1 | resp = await self._pool.handle_async_request(req) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request skyvern-1 | raise exc from None skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request skyvern-1 | response = await connection.handle_async_request( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request skyvern-1 | return await self._connection.handle_async_request(request) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 143, in handle_async_request skyvern-1 | raise exc skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 93, in handle_async_request skyvern-1 | await self._send_request_headers(**kwargs) skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 151, in _send_request_headers skyvern-1 | with map_exceptions({h11.LocalProtocolError: LocalProtocolError}): skyvern-1 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ skyvern-1 | self.gen.throw(typ, value, traceback) skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions skyvern-1 | raise to_exc(exc) from exc skyvern-1 | httpcore.LocalProtocolError: Illegal header value b'Bearer sk-proj-ZZZZZZZ\r\n' skyvern-1 | skyvern-1 | The above exception was the direct cause of the following exception: skyvern-1 | skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1576, in _request skyvern-1 | response = await self._client.send( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1674, in send skyvern-1 | response = await self._send_handling_auth( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1702, in _send_handling_auth skyvern-1 | response = await self._send_handling_redirects( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1739, in _send_handling_redirects skyvern-1 | response = await self._send_single_request(request) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1776, in _send_single_request skyvern-1 | response = await transport.handle_async_request(request) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 376, in handle_async_request skyvern-1 | with map_httpcore_exceptions(): skyvern-1 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ skyvern-1 | self.gen.throw(typ, value, traceback) skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions skyvern-1 | raise mapped_exc(message) from exc skyvern-1 | httpx.LocalProtocolError: Illegal header value b'Bearer sk-proj-zzzzz\r\n' skyvern-1 | skyvern-1 | The above exception was the direct cause of the following exception: skyvern-1 | skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/llms/openai/openai.py", line 659, in acompletion skyvern-1 | headers, response = await self.make_openai_chat_completion_request( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/llms/openai/openai.py", line 371, in make_openai_chat_completion_request skyvern-1 | raise e skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/llms/openai/openai.py", line 359, in make_openai_chat_completion_request skyvern-1 | await openai_aclient.chat.completions.with_raw_response.create( skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_legacy_response.py", line 373, in wrapped skyvern-1 | return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 1661, in create skyvern-1 | return await self._post( skyvern-1 | ^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1843, in post skyvern-1 | return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1537, in request skyvern-1 | return await self._request( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1600, in _request skyvern-1 | return await self._retry_request( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1670, in _retry_request skyvern-1 | return await self._request( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1600, in _request skyvern-1 | return await self._retry_request( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1670, in _retry_request skyvern-1 | return await self._request( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1610, in _request skyvern-1 | raise APIConnectionError(request=request) from err skyvern-1 | openai.APIConnectionError: Connection error. skyvern-1 | skyvern-1 | During handling of the above exception, another exception occurred: skyvern-1 | skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/main.py", line 485, in acompletion skyvern-1 | response = await init_response skyvern-1 | ^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/llms/openai/openai.py", line 690, in acompletion skyvern-1 | raise OpenAIError( skyvern-1 | litellm.llms.openai.common_utils.OpenAIError: Connection error. skyvern-1 | skyvern-1 | During handling of the above exception, another exception occurred: skyvern-1 | skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/app/skyvern/forge/sdk/api/llm/api_handler_factory.py", line 264, in llm_api_handler skyvern-1 | response = await litellm.acompletion( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/utils.py", line 1205, in wrapper_async skyvern-1 | raise e skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/utils.py", line 1054, in wrapper_async skyvern-1 | result = await original_function(*args, **kwargs) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/main.py", line 507, in acompletion skyvern-1 | raise exception_type( skyvern-1 | ^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2141, in exception_type skyvern-1 | raise e skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 408, in exception_type skyvern-1 | raise APIError( skyvern-1 | litellm.exceptions.APIError: litellm.APIError: APIError: OpenAIException - Connection error. skyvern-1 | skyvern-1 | The above exception was the direct cause of the following exception: skyvern-1 | skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/app/skyvern/forge/agent.py", line 713, in agent_step skyvern-1 | json_response = await app.LLM_API_HANDLER( skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/app/skyvern/forge/sdk/api/llm/api_handler_factory.py", line 272, in llm_api_handler skyvern-1 | raise LLMProviderErrorRetryableTask(llm_key) from e skyvern-1 | skyvern.forge.sdk.api.llm.exceptions.LLMProviderErrorRetryableTask: Error while using LLMProvider Retryable error while using LLMProvider OPENAI_GPT4O skyvern-1 | 2025-01-30T15:59:23.283079Z [info ] Updating step in db diff={'status': {'old': <StepStatus.running: 'running'>, 'new': <StepStatus.failed: 'failed'>}} step_id=stp_354633457343529114 task_id=tsk_354633457343529112 skyvern-1 | 2025-01-30T15:59:23.305644Z [warning ] Step failed, retrying step_id=stp_354633457343529114 step_order=0 step_retry=0 task_id=tsk_354633457343529112 skyvern-1 | 2025-01-30T15:59:23.322999Z [info ] Starting agent step step_id=stp_354633573307646130 step_order=0 step_retry=1 task_id=tsk_354633457343529112 skyvern-1 | 2025-01-30T15:59:23.323217Z [info ] Updating step in db diff={'status': {'old': <StepStatus.created: 'created'>, 'new': <StepStatus.running: 'running'>}} step_id=stp_354633573307646130 task_id=tsk_354633457343529112 skyvern-1 | 2025-01-30T15:59:23.331838Z [info ] Waiting for 5 seconds before scraping the website. skyvern-1 | 2025-01-30T15:59:36.589692Z [info ] Scraped website num_elements=671 step_id=stp_354633573307646130 step_order=0 step_retry=1 task_id=tsk_354633457343529112 url=https://news.ycombinator.com/ skyvern-1 | 2025-01-30T15:59:36.742463Z [info ] Calling LLM API llm_key=OPENAI_GPT4O model=gpt-4o skyvern-1 | skyvern-1 | Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new skyvern-1 | LiteLLM.Info: If you need to debug this error, use litellm.set_verbose=True'.
skyvern-1 |
skyvern-1 | 2025-01-30T15:59:38.204491Z [error ] Unexpected exception in agent_step, marking step as failed step_id=stp_354633573307646130 step_order=0 step_retry=1 task_id=tsk_354633457343529112
skyvern-1 | Traceback (most recent call last):
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
skyvern-1 | yield
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 377, in handle_async_request
skyvern-1 | resp = await self._pool.handle_async_request(req)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
skyvern-1 | raise exc from None
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
skyvern-1 | response = await connection.handle_async_request(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
skyvern-1 | return await self._connection.handle_async_request(request)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 143, in handle_async_request
skyvern-1 | raise exc
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 93, in handle_async_request
skyvern-1 | await self._send_request_headers(**kwargs)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 151, in _send_request_headers
skyvern-1 | with map_exceptions({h11.LocalProtocolError: LocalProtocolError}):
skyvern-1 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
skyvern-1 | self.gen.throw(typ, value, traceback)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
skyvern-1 | raise to_exc(exc) from exc
skyvern-1 | httpcore.LocalProtocolError: Illegal header value b'Bearer sk-proj-zzz\r\n'
skyvern-1 |
skyvern-1 | The above exception was the direct cause of the following exception:
skyvern-1 |
skyvern-1 | Traceback (most recent call last):
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1576, in _request
skyvern-1 | response = await self._client.send(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1674, in send
skyvern-1 | response = await self._send_handling_auth(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1702, in _send_handling_auth
skyvern-1 | response = await self._send_handling_redirects(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1739, in _send_handling_redirects
skyvern-1 | response = await self._send_single_request(request)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1776, in _send_single_request
skyvern-1 | response = await transport.handle_async_request(request)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 376, in handle_async_request
skyvern-1 | with map_httpcore_exceptions():
skyvern-1 | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
skyvern-1 | self.gen.throw(typ, value, traceback)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
skyvern-1 | raise mapped_exc(message) from exc
skyvern-1 | httpx.LocalProtocolError: Illegal header value b'Bearer sk-proj-zzz\r\n'
skyvern-1 |
skyvern-1 | The above exception was the direct cause of the following exception:
skyvern-1 |
skyvern-1 | Traceback (most recent call last):
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/llms/openai/openai.py", line 659, in acompletion
skyvern-1 | headers, response = await self.make_openai_chat_completion_request(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/llms/openai/openai.py", line 371, in make_openai_chat_completion_request
skyvern-1 | raise e
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/llms/openai/openai.py", line 359, in make_openai_chat_completion_request
skyvern-1 | await openai_aclient.chat.completions.with_raw_response.create(
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_legacy_response.py", line 373, in wrapped
skyvern-1 | return cast(LegacyAPIResponse[R], await func(*args, **kwargs))
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 1661, in create
skyvern-1 | return await self._post(
skyvern-1 | ^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1843, in post
skyvern-1 | return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1537, in request
skyvern-1 | return await self._request(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1600, in _request
skyvern-1 | return await self._retry_request(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1670, in _retry_request
skyvern-1 | return await self._request(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1600, in _request
skyvern-1 | return await self._retry_request(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1670, in _retry_request
skyvern-1 | return await self._request(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1610, in _request
skyvern-1 | raise APIConnectionError(request=request) from err
skyvern-1 | openai.APIConnectionError: Connection error.
skyvern-1 |
skyvern-1 | During handling of the above exception, another exception occurred:
skyvern-1 |
skyvern-1 | Traceback (most recent call last):
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/main.py", line 485, in acompletion
skyvern-1 | response = await init_response
skyvern-1 | ^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/llms/openai/openai.py", line 690, in acompletion
skyvern-1 | raise OpenAIError(
skyvern-1 | litellm.llms.openai.common_utils.OpenAIError: Connection error.
skyvern-1 |
skyvern-1 | During handling of the above exception, another exception occurred:
skyvern-1 |
skyvern-1 | Traceback (most recent call last):
skyvern-1 | File "/app/skyvern/forge/sdk/api/llm/api_handler_factory.py", line 264, in llm_api_handler
skyvern-1 | response = await litellm.acompletion(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/utils.py", line 1205, in wrapper_async
skyvern-1 | raise e
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/utils.py", line 1054, in wrapper_async
skyvern-1 | result = await original_function(*args, **kwargs)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/main.py", line 507, in acompletion
skyvern-1 | raise exception_type(
skyvern-1 | ^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2141, in exception_type
skyvern-1 | raise e
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 408, in exception_type
skyvern-1 | raise APIError(
skyvern-1 | litellm.exceptions.APIError: litellm.APIError: APIError: OpenAIException - Connection error.
skyvern-1 |
skyvern-1 | The above exception was the direct cause of the following exception:
skyvern-1 |
skyvern-1 | Traceback (most recent call last):
skyvern-1 | File "/app/skyvern/forge/agent.py", line 713, in agent_step
skyvern-1 | json_response = await app.LLM_API_HANDLER(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/app/skyvern/forge/sdk/api/llm/api_handler_factory.py", line 272, in llm_api_handler
skyvern-1 | raise LLMProviderErrorRetryableTask(llm_key) from e
skyvern-1 | skyvern.forge.sdk.api.llm.exceptions.LLMProviderErrorRetryableTask: Error while using LLMProvider Retryable error
skyvern-1 | 2025-01-30T16:00:39.956313Z [info ] Cleaning up for task
skyvern-1 | 2025-01-30T16:00:39.956452Z [info ] Closing browser state
skyvern-1 | 2025-01-30T16:00:39.956547Z [info ] Closing browser context and its pages
skyvern-1 | 2025-01-30T16:00:40.777879Z [info ] Main browser context and all its pages are closed
skyvern-1 | 2025-01-30T16:00:40.778063Z [info ] Stopping playwright
skyvern-1 | 2025-01-30T16:00:40.792317Z [info ] Playwright is stopped
skyvern-1 | 2025-01-30T16:00:40.792468Z [info ] Task is cleaned up
skyvern-1 | 2025-01-30T16:00:40.810794Z [info ] S3 upload aio tasks for primary_keys=['tsk_354633457343529112'] completed in 0.00s duration=0.0001010894775390625 primary_keys=['tsk_354633457343529112']
skyvern-1 | 2025-01-30T16:00:40.811048Z [warning ] Task has no webhook callback url. Not sending task response task_id=tsk_354633457343529112

@suchintan
Copy link
Contributor

@SaschaValentin can you please rotate your openai keys ASAP? They were included in the log above

I replaced them manually with sk-proj-ZZZ but they're still leaked and you should revoke them ASAP

It seems like there's an issue accessing your OpenAI keys.. are you open to sharing your docker-compose.yml (with the keys removed)?

@SaschaValentin
Copy link
Author

The key is revoked and could not be used any more.
And here is my docker-compose... (only changed to .txt so I can upload it)

docker-compose.txt

Copy link
Contributor

I see the problem

You're missing this:
- LLM_KEY=OPENAI_GPT4O

Are you open to opening a PR with that line added to the docker compose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants