Giter Site home page Giter Site logo

Comments (4)

silverbucket avatar silverbucket commented on May 19, 2024

Could you let me know what you tried to send?

Obviously, it's designed not to fail when an unknown command is sent, so
this is a bug, but I need to know steps to reproduce so I can write a test
for it..

On Thu, Mar 14, 2013 at 10:11 PM, Michiel@unhosted <[email protected]

wrote:

/root/run/sockethub/lib/protocols/sockethub/dispatcher.js:373
var report = jsv.validate(o, proto.verbs[verb].schema);
^
TypeError: Cannot read property 'schema' of undefined
at
WebSocketConnection.Dispatcher.connect.connection.sendUTF.JSON.stringify.rid
(/root/run/sockethub/lib/protocols/sockethub/dispatcher.js:373:57)
at WebSocketConnection.EventEmitter.emit (events.js:93:17)
at WebSocketConnection.processFrame
(/root/run/sockethub/node_modules/websocket/lib/WebSocketConnection.js:403:26)
at WebSocketConnection.handleSocketData
(/root/run/sockethub/node_modules/websocket/lib/WebSocketConnection.js:247:14)
at Socket.EventEmitter.emit (events.js:93:17)
at TCP.onread (net.js:396:14)

it should catch this and reply 'command unrecognized', 'platform
unrecognized', 'unparseable', etcetera. nothing you throw at it should
cause it to topple.


Reply to this email directly or view it on GitHubhttps://github.com//issues/61
.

from sockethub.

silverbucket avatar silverbucket commented on May 19, 2024

added a second test, can't reproduce. couldn't push my repo for some reason because of this crappy internet connection, but the second test is on my system and neither the existing one, or the new one, can create you error. they both handle unknown verbs gracefully.

please when you run into bugs assume it's a bug instead of reporting it like it's a feature request. give me more information otherwise i have no reproduce-able information to go on an have to assume it's a user error.

from sockethub.

silverbucket avatar silverbucket commented on May 19, 2024

@michielbdejong can you let me know whether you're able to provide me with more information? otherwise i'm going to close this because i've checked for this since day one, have 2 tests, and haven't run into it myself.
so there's something you're doing differently that I need to know of if i'm to try to address this.

from sockethub.

michielbdejong avatar michielbdejong commented on May 19, 2024

hm, in that case maybe i got it wrong. it's possible that i had announced a verb in protocol.js but not in verbs_schema.js. that's obviously not something that needs checking

from sockethub.

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.