Error generating code. Check the Developer Console AND the backend logs for details.
my api-key is openAI-hk,4.0, .env,llm.py are following
Yes i have the same issue.
I Also get same error, Any Solution found ?
@sgr2579 what do your logs say?
@sgr2579 what do your logs say?
your backend logs will be helpful
how to get that ?
your backend logs will be helpful
From which ever terminal you're running your backend in
From which ever terminal you're running your backend in
hey @sgr2579 this doesn't look like screenshot-to-code backend logs.
I'm not sure this will help. But based on what I see, this issue may be related to port setting.
- Check your backend port number. the port number should be 7001. (Because frontend is trying to connect 7001 port.)
- Check whether other processes are using port 7001.
Hi my backend log is: Caches/pypoetry/virtualenvs/backend-FuQBPevx-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1504, in _request raise APIConnectionError(request=request) from err openai.APIConnectionError: Connection error. INFO: connection closed
I also have this kind of issue, and my backend logs is like this:
Skipping virtualenv creation, as specified in config file. /usr/local/lib/python3.12/site-packages/moviepy/config_defaults.py:1: SyntaxWarning: invalid escape sequence '\P' """ /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:294: SyntaxWarning: invalid escape sequence '\d' lines_video = [l for l in lines if ' Video: ' in l and re.search('\d+x\d+', l)] /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:367: SyntaxWarning: invalid escape sequence '\d' rotation_lines = [l for l in lines if 'rotate :' in l and re.search('\d+$', l)] /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:370: SyntaxWarning: invalid escape sequence '\d' match = re.search('\d+$', rotation_line) INFO: Started server process [1] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:7001/ (Press CTRL+C to quit) INFO: Shutting down INFO: Waiting for application shutdown. INFO: Application shutdown complete. INFO: Finished server process [1] Skipping virtualenv creation, as specified in config file. INFO: Started server process [1] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:7001/ (Press CTRL+C to quit) INFO: 10.125.155.0:61458 - "GET / HTTP/1.1" 200 OK INFO: 10.125.155.0:61458 - "GET /favicon.ico HTTP/1.1" 404 Not Found
@Peter-Hamster there doesn't seem to be an error in those logs. When you load your front-end, does that work? Are you running both backend and front-end on your local machine or on a remote machine?
Is your problem solved, I'm getting the same error
I changed the ip address from 127.0.0.1 to the public address of the machine running the backend container. And it works.
On Tue, Apr 16, 2024 at 5:42 PM wshwhyu @.***> wrote:
Is your problem solved, I'm getting the same error
— Reply to this email directly, view it on GitHub https://github.com/abi/screenshot-to-code/issues/218#issuecomment-2058675327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7RA7XPY7RP64KLHRID2STY5TXBDAVCNFSM6AAAAABCBPDJZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJYGY3TKMZSG4 . You are receiving this because you commented.Message ID: @.***>
-- Hongxian Sun, M. Phil. CELL: (+86) 19951550768
Closing due to inactivity