Error Response
akim opened this issue · comments
Getting the following when running the localserver.
Error response
Error code: 404
Message: File not found.
Error code explanation: HTTPStatus.NOT_FOUND - Nothing matches the given URI.
Hi @akim thanks for the report, could you please share some additional details including your OS, the command you ran and the output you saw? I also want to confirm that you are running python draw2img/main.py
from the root directory of the repo.
Yes - it's on MacOS with Python 3.10.9
Here's the output:
% python draw2img/main.py
Loading pipeline components...: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:02<00:00, 2.98it/s]
INFO:websocket_server:listening: ws://localhost:8079
INFO:draw2img:Web UI URL: http://localhost:8080
127.0.0.1 - - [05/Jan/2024 10:57:13] code 404, message File not found
127.0.0.1 - - [05/Jan/2024 10:57:13] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [05/Jan/2024 10:57:13] code 404, message File not found
127.0.0.1 - - [05/Jan/2024 10:57:13] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [05/Jan/2024 10:57:14] code 404, message File not found
127.0.0.1 - - [05/Jan/2024 10:57:14] "GET / HTTP/1.1" 404 -
Thanks for the details, it seems like this path may not be resolving correctly in your environment for some reason.
I'm unable to reproduce on my Linux box so far - are you able to investigate with a print
statement or debugger?
The 'Start server' in the README at the moment (84f7b51) doesn't mention having to run npm run build
to populate the dist/
folder - but that does seem to be required as the dist
isn't in git
Ah yup exactly, sorry for the hassle! I checked in the dist directory now so it won't be necessary to perform the build. This issue should be resolved now @akim, thanks again for reporting.
That was it - thanks!