Closed wangzh12023 closed 3 months ago
When you visit http://127.0.0.1:7000 in the browser, what do you see? Is your front-end and back-end running on the same machine?
When you visit http://127.0.0.1:7000 in the browser, what do you see? Is your front-end and back-end running on the same machine?
I see that:
Your backend is running correctly. Please open the front-end URL (default is http://localhost:5173) to use screenshot-to-code.
And when you upload an image to the front end, can you share what’s in the browser console and in the backend terminal? I’m unsure why the front end isn’t connecting to the backend.
And when you upload an image to the front end, can you share what’s in the browser console and in the backend terminal? I’m unsure why the front end isn’t connecting to the backend.
https://github.com/user-attachments/assets/10cde74c-213e-47dd-972c-109ca031c2ba
https://github.com/user-attachments/assets/7eb69e76-d5d9-4ce6-83fc-6839ebb6a73f
Seems like your backend is running on :7000 the front-end is trying to connect to :7001
Can you run on 7001 like in the README? poetry run uvicorn main:app --reload --port 7001
That should fix it!
Seems like your backend is running on :7000 the front-end is trying to connect to :7001
Can you run on 7001 like in the README? poetry run uvicorn main:app --reload --port 7001
That should fix it!
Yes, that resolved. Thanks so much for your help.
Describe the bug I have done the steps according to this mechod to solve problem of
portry install
, but then when I start the server and upload a picture, it log out the message"Error generating code. Check the Developer Console AND the backend logs for details. Feel free to open a Github issue.", but then I checkout the terminal, there is not any output of error, how can I find the log of error?Screenshots of backend AND frontend terminal logs backend logs:
And the screenshot of the frontend: