GithubHelp home page GithubHelp logo

Comments (7)

HelloZeroNet avatar HelloZeroNet commented on April 28, 2024

Please send me log/debug.log file, so maybe I can find out whats wrong. [email protected]
Thanks!

from zeronet.

thesoftwarejedi avatar thesoftwarejedi commented on April 28, 2024

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

from zeronet.

arthurlutz avatar arthurlutz commented on April 28, 2024

same here

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on April 28, 2024

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

from zeronet.

shakna-israel avatar shakna-israel commented on April 28, 2024

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

Do the errors change after restarting the server?

from zeronet.

nathantym avatar nathantym commented on April 28, 2024

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.

from zeronet.

nathantym avatar nathantym commented on April 28, 2024

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

from zeronet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.