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

"Failed to start code interpreter session. This may be an issue with E2B. Please try again later." [BUG] #473

Open
pushpixels opened this issue Mar 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pushpixels
Copy link

Failed to acquire sandbox
Traceback (most recent call last):
File "/root/GPTDiscord/cogs/code_interpreter_service_cog.py", line 304, in init
self.session = DataAnalysis(api_key=E2B_API_KEY)
File "/usr/local/lib/python3.9/dist-packages/e2b/templates/data_analysis.py", line 44, in init
super().init(
File "/usr/local/lib/python3.9/dist-packages/e2b/sandbox/main.py", line 102, in init
super().init(
File "/usr/local/lib/python3.9/dist-packages/e2b/sandbox/sandbox_connection.py", line 97, in init
self._open(timeout=timeout)
File "/usr/local/lib/python3.9/dist-packages/e2b/sandbox/main.py", line 121, in _open
super()._open(timeout=timeout)
File "/usr/local/lib/python3.9/dist-packages/e2b/sandbox/sandbox_connection.py", line 201, in _open
raise e
File "/usr/local/lib/python3.9/dist-packages/e2b/sandbox/sandbox_connection.py", line 170, in _open
self._sandbox = api.instances_post(
File "/usr/local/lib/python3.9/dist-packages/pydantic/_internal/_validate_call.py", line 100, in call
res = self.pydantic_validator.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
File "/usr/local/lib/python3.9/dist-packages/e2b/api/v2/client/api/instances_api.py", line 218, in instances_post
return self.instances_post_with_http_info(new_instance, **kwargs) # noqa: E501
File "/usr/local/lib/python3.9/dist-packages/pydantic/_internal/_validate_call.py", line 100, in call
res = self.pydantic_validator.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
File "/usr/local/lib/python3.9/dist-packages/e2b/api/v2/client/api/instances_api.py", line 325, in instances_post_with_http_info
return self.api_client.call_api(
File "/usr/local/lib/python3.9/dist-packages/e2b/api/v2/client/api_client.py", line 448, in call_api
return self.__call_api(
File "/usr/local/lib/python3.9/dist-packages/e2b/api/v2/client/api_client.py", line 242, in __call_api
raise e
File "/usr/local/lib/python3.9/dist-packages/e2b/api/v2/client/api_client.py", line 229, in __call_api
response_data = self.request(
File "/usr/local/lib/python3.9/dist-packages/e2b/api/v2/client/api_client.py", line 526, in request
return self.rest_client.post_request(
File "/usr/local/lib/python3.9/dist-packages/e2b/api/v2/client/rest.py", line 352, in post_request
return self.request(
File "/usr/local/lib/python3.9/dist-packages/e2b/api/v2/client/rest.py", line 259, in request
raise NotFoundException(http_resp=r)
e2b.api.v2.client.exceptions.NotFoundException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'content-type': 'application/json; charset=utf-8', 'date': 'Mon, 25 Mar 2024 08:37:24 GMT', 'Content-Length': '74', 'via': '1.1 google', 'Alt-Svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'})
HTTP response body: {"code":404,"message":"validation error: no matching operation was found"}

@pushpixels pushpixels added the bug Something isn't working label Mar 25, 2024
@pushpixels
Copy link
Author

E2B dev "We've changed few thing a while back and it was backward incompatible, so we changed some endpoints and we removed the support on Sunday. So I think this could be the cause"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants