abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
https://screenshottocode.com
MIT License
56.28k stars 6.92k forks source link

Error generating code #405

Open seethun opened 1 week ago

seethun commented 1 week ago

I get an error when converting screenshot to code on self hosted application

Steps to reproduce the behavior:

  1. Self host this application per readme
  2. Upload image to convert to code.
  3. The application shows the error message - "Error generating code. Check the Developer Console AND the backend logs for details. Feel free to open a Github issue"
  4. I don't see any errors in the developer console. See below
    screenshot-to-code/backend# sudo poetry run uvicorn main:app --reload --port 7001
    INFO:     Will watch for changes in these directories: ['/home/admin/dev/devtools/screenshot-to-code/backend']
    INFO:     Uvicorn running on http://127.0.0.1:7001 (Press CTRL+C to quit)
    INFO:     Started reloader process [445283] using StatReload
    INFO:     Started server process [445287]
    INFO:     Waiting for application startup.
    INFO:     Application startup complete.
  5. I dont see log files. Let me know where thats located
abi commented 1 week ago

You're likely running into issues where the front-end is not connecting to the backend. Are they running on the same machine? What happens when you go to http://127.0.0.1:7001?