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

error generating code. Please contact support #478

Open
selectbook opened this issue Jan 18, 2025 · 1 comment
Open

error generating code. Please contact support #478

selectbook opened this issue Jan 18, 2025 · 1 comment

Comments

@selectbook
Copy link

Error occurred during generation: error generating code. Please contact support

backend logs:

Traceback (most recent call last): File "E:\AI\screenshot-to-code\backend\llm.py", line 76, in stream_openai_response stream = await client.chat.completions.create(**params) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\openai\resources\chat\completions.py", line 1720, in create return await self._post( ^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\openai\_base_client.py", line 1843, in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\openai\_base_client.py", line 1537, in request return await self._request( ^^^^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\openai\_base_client.py", line 1638, in _request raise self._make_status_error_from_response(err.response) from None openai.NotFoundError: 404 page not found Traceback (most recent call last): File "E:\AI\screenshot-to-code\backend\llm.py", line 76, in stream_openai_response stream = await client.chat.completions.create(**params) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\openai\resources\chat\completions.py", line 1720, in create return await self._post( ^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\openai\_base_client.py", line 1843, in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\openai\_base_client.py", line 1537, in request return await self._request( ^^^^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\openai\_base_client.py", line 1638, in _request raise self._make_status_error_from_response(err.response) from None openai.NotFoundError: 404 page not found ERROR: Exception in ASGI application Traceback (most recent call last): File "E:\AI\screenshot-to-code\backend\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 250, in run_asgi result = await self.app(self.scope, self.asgi_receive, self.asgi_send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in __call__ return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\screenshot-to-code\backend\Lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\middleware\errors.py", line 152, in __call__ await self.app(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\middleware\cors.py", line 77, in __call__ await self.app(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\routing.py", line 715, in __call__ await self.middleware_stack(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\routing.py", line 735, in app await route.handle(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\routing.py", line 362, in handle await self.app(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\routing.py", line 95, in app await wrap_app_handling_exceptions(app, session)(scope, receive, send) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\starlette\routing.py", line 93, in app await func(session) File "E:\AI\screenshot-to-code\backend\Lib\site-packages\fastapi\routing.py", line 383, in app await dependant.call(**solved_result.values) File "E:\AI\screenshot-to-code\backend\routes\generate_code.py", line 349, in stream_code raise Exception("All generations failed") Exception: All generations failed INFO: connection closed

@abi
Copy link
Owner

abi commented Jan 18, 2025

" openai.NotFoundError: 404 page not found"

You're having trouble connecting to OpenAI

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

No branches or pull requests

2 participants