-
-
Notifications
You must be signed in to change notification settings - Fork 328
-
With idom 0.28.0[stable] refreshing the page yields a Error: File not found error. Downgrading to 0.24.0 fixes the issue.
This is with Sanic and run_in_thread.
Beta Was this translation helpful? Give feedback.
All reactions
Created an issue to track this: #389
Replies: 2 comments 3 replies
-
Maybe try idom restore. There's a bug where the build dir doesn't get updated after a pip install --upgrade idom (should be fixed in upcoming release). If that doesn't work, do you have a traceback?
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks, idom restore didn't make a difference (our project is also deployed via docker so I would be surprised)
asrs-rdk_1 | [2021年06月08日 19:12:02 +0000] [1] [ERROR] Exception occurred while handling uri: 'http://localhost:3040/client/index.html'
asrs-rdk_1 | Traceback (most recent call last):
asrs-rdk_1 | File "/root/.cache/pypoetry/virtualenvs/rdk-host-9TtSrW0h-py3.8/lib/python3.8/site-packages/sanic/static.py", line 87, in _handler
asrs-rdk_1 | stats = await stat(file_path)
asrs-rdk_1 | File "/root/.cache/pypoetry/virtualenvs/rdk-host-9TtSrW0h-py3.8/lib/python3.8/site-packages/aiofiles/os.py", line 13, in run
asrs-rdk_1 | return await loop.run_in_executor(executor, pfunc)
asrs-rdk_1 | File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
asrs-rdk_1 | result = self.fn(*self.args, **self.kwargs)
asrs-rdk_1 | FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/pypoetry/virtualenvs/rdk-host-9TtSrW0h-py3.8/lib/python3.8/site-packages/idom/client/build/index.html'
asrs-rdk_1 |
asrs-rdk_1 | During handling of the above exception, another exception occurred:
asrs-rdk_1 |
asrs-rdk_1 | Traceback (most recent call last):
asrs-rdk_1 | File "/root/.cache/pypoetry/virtualenvs/rdk-host-9TtSrW0h-py3.8/lib/python3.8/site-packages/sanic/app.py", line 942, in handle_request
asrs-rdk_1 | response = await response
asrs-rdk_1 | File "/root/.cache/pypoetry/virtualenvs/rdk-host-9TtSrW0h-py3.8/lib/python3.8/site-packages/sanic/static.py", line 132, in _handler
asrs-rdk_1 | raise FileNotFound(
asrs-rdk_1 | sanic.exceptions.FileNotFound: File not found
asrs-rdk_1 | [2021年06月08日 19:12:02 +0000] - (sanic.access)[INFO][172.19.0.1:65392]: GET http://localhost:3040/client/index.html 404 21
Beta Was this translation helpful? Give feedback.
All reactions
-
I've verified this problem was introduced in 0.28.0; downgrading to 0.27.0 resolves the issue.
Beta Was this translation helpful? Give feedback.
All reactions
-
I'm also seeing this. Seems to be working on main w/ pip install git+https://github.com/idom-team/idom.git@main and then idom restore
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Created an issue to track this: #389
Beta Was this translation helpful? Give feedback.