Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

File not found error on Refresh #388

Answered by rmorshea
brentbaum asked this question in Problem
Discussion options

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.

You must be logged in to vote

Created an issue to track this: #389

Replies: 2 comments 3 replies

Comment options

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?

You must be logged in to vote
3 replies
Comment options

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
Comment options

I've verified this problem was introduced in 0.28.0; downgrading to 0.27.0 resolves the issue.

Comment options

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

Comment options

Created an issue to track this: #389

You must be logged in to vote
0 replies
Answer selected by rmorshea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /