Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always says: UiServer Websocket error, please reload the page #2

Closed
thesoftwarejedi opened this issue Jan 13, 2015 · 7 comments
Closed

Comments

@thesoftwarejedi
Copy link
Contributor

Every page loading always reports: UiServer Websocket error, please reload the page

Javascript console shows: http://gyazo.com/f1cee5522fe1516d501b8cea7339deb4

@HelloZeroNet
Copy link
Owner

Please send me log/debug.log file, so maybe I can find out whats wrong. hello@noloop.me
Thanks!

@thesoftwarejedi
Copy link
Contributor Author

These appear a lot (scrubbed IP address of peer):

[2015-01-13 01:54:02,377] DEBUG Site:1NpWNp..i5qU Need content.json first
[2015-01-13 01:54:02,582] ERROR Peer:x.x.x.x:15441 getFile {'inner_path': 'content.json', 'site': '1NpWNp4qo5DGVeC59GNW2bBKxHu2jyi5qU', 'location': 0} error: File read error: [Errno 2] No such file or directory: 'data/1NpWNp4qo5DGVeC59GNW2bBKxHu2jyi5qU/content.json'
[2015-01-13 01:54:02,582] ERROR WorkerManager:1NpWNp..i5qU x.x.x.x:15441: Hash failed: content.json
[2015-01-13 01:54:02,671] ERROR Site:1NpWNp..i5qU WebSocket error: string indices must be integers
[2015-01-13 01:54:02,671] DEBUG lib.geventwebsocket.handler Closed WebSocket
[2015-01-13 01:54:02,671] DEBUG lib.geventwebsocket.handler Failed to write closing frame -> closing socket
[2015-01-13 01:54:02,671] DEBUG lib.geventwebsocket.handler Closed WebSocket

@arthurlutz
Copy link

same here

@HelloZeroNet
Copy link
Owner

Just added more detailed error logging, please try with it if problem still exits

@shakna-israel
Copy link
Contributor

I've had these issues when the server is running before some new files are published.

Do the errors change after restarting the server?

@nathantym
Copy link
Contributor

I just cloned the repo and started using this and I've been receiving the same error. I'll be looking into it, so please let me know if there's any new information on it.

@nathantym
Copy link
Contributor

WebSocket error: KeyError: 'cmd' in UiWebsocket.py line 34 > UiWebsocket.py line 80

https://github.com/HelloZeroNet/ZeroNet/blob/master/src/Ui/UiWebsocket.py#L80
cmd = req["cmd"]

It's probably trying to set that key that isn't there yet.

EDIT: Looking into it further it looks like there's a point where the key does not exist in the request data and that's when it errors out.

[u'cmd', u'params', u'id']
[u'cmd', u'params', u'id']
[u'cmd', u'params', u'id']
[u'cmd', u'params', u'id']
[u'cmd', u'params', u'id']
[u'cmd', u'params', u'id']
[u'opt', u'id']
[22:39:39] Site:1EU1tb..E4Vr WebSocket error: KeyError: 'cmd' in UiWebsocket.py line 34 > UiWebsocket.py line 81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants