Error generating code. Check the Developer Console AND the backend logs for details. Feel free to open a Github issue.
there is such a problem, has anyone encountered it? How to solve it?
Not interested again.
@artemmarkov050 please share your backend and front-end logs to help with debugging.
I am facing a similar issue as the one mentioned above. I have made a domain public for everyone to use based on the LAN IP. People access the link I shared with the IP, and then the mentioned error appears.
@TuanVnit yes you need to update the backend URL env if you're accessing it from a front-end on a different computer.
This is the primary error I get on the backend:
PS C:\Users\ericl\Downloads\screenshot-to-code-main\screenshot-to-code-main\backend> poetry run uvicorn main:app --reload --port 7001
INFO: Will watch for changes in these directories: ['C:\Users\ericl\Downloads\screenshot-to-code-main\screenshot-to-code-main\backend']
INFO: Uvicorn running on http://127.0.0.1:7001 (Press CTRL+C to quit)
INFO: Started reloader process [2164] using StatReload
Process SpawnProcess-1:
Traceback (most recent call last):
File "C:\Python313\Lib\multiprocessing\process.py", line 313, in _bootstrap
self.run()
~~~~~~~~^^
File "C:\Python313\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ericl\AppData\Local\pypoetry\Cache\virtualenvs\backend-ulQFLN8h-py3.13\Lib\site-packages\uvicorn_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\ericl\AppData\Local\pypoetry\Cache\virtualenvs\backend-ulQFLN8h-py3.13\Lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python313\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "C:\Python313\Lib\asyncio\runners.py", line 118, in run
return self.loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Python313\Lib\asyncio\base_events.py", line 720, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "C:\Users\ericl\AppData\Local\pypoetry\Cache\virtualenvs\backend-ulQFLN8h-py3.13\Lib\site-packages\uvicorn\server.py", line 68, in serve
config.load()
~~~~~~~~~~~^^
File "C:\Users\ericl\AppData\Local\pypoetry\Cache\virtualenvs\backend-ulQFLN8h-py3.13\Lib\site-packages\uvicorn\config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\ericl\AppData\Local\pypoetry\Cache\virtualenvs\backend-ulQFLN8h-py3.13\Lib\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "C:\Python313\Lib\importlib_init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
@ericlarslee i think something is up with your .env file. I think there's a utf-8 fix described in the README
I am getting the same error. I dont see any error in the backend, it is generating code successfully, but still getting this error sometimes. Also, I am using GPT 4.1 mini model. Application gets stuck sometimes and streaming is not happening. Any help?