Replies: 2 comments 1 reply
-
Hi @eitama, Unfortunately it is very hard and time-consuming for us to debug your code in its current form. Can you, please, try to create a minimum reproducible code example? This would allow us and the community to help more efficiently. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you sure it ist NiceGUI related? The stack trace indicates that it might also happen with a plain FastAPI App and uvicorn running with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hi,
Context
I got slow internet connection, and a few PCs that download game updates from Steam/Epic.
I implemented a client/server python app (two entry points, client.py and server.py) to only download updates on one PC, and copy the new/changed files to other PCs through LAN - On demand.
It works by comparing MD5s across computers and only copying different files. Copying uses httpx.post with large timeouts, over lan at 1Gbps.
It all works very nicely.
The problem
Sometimes I get these errors (below) in stdout:
When they show, it's millions of them very quick.
Since I am a python noob, and don't really understand threads / asyncio, it's hard for me to drill into this efficiently.
I spent 3 days trying to pinpoint the issue.
I looked into nicegui code and saw it extends uvicorn.Server, and calls the super().run function.
There are 3 flavors there, one without sockets. I noticed it is related to the reload flag, so I disabled reload, and problem went away.
Would appreciate help.
All the code is in github: https://github.com/eitama/folder-sync
The error happens when files are uploaded, but not every time, and even if it's just 1 file it still may happen.
Upload is triggered here: https://github.com/eitama/folder-sync/blob/master/client.py#L84
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions