Comments (4)
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.
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.
@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.
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)
- Tag and publish pre-release of 5.0 HOT 1
- Split sockethub package into sockethub and @sockethub/server HOT 1
- Improve linting
- Generate Sockethub config with command-line tool
- Sockethub shutting down instead of handling exception HOT 8
- Add option to force clients to provide a token for access
- Platform Idea: Readability
- Switch to yarn workspaces and lerna-lite?
- i can not 'yarn run start' HOT 8
- docker-compose build does not seem to work HOT 1
- `socket.io.js.map` 404
- Platform Idea: Discourse Chat HOT 1
- Do we need to still support Node 14.x ? HOT 2
- Switch to `pnpm` & use it's workspaces
- Sentry integration
- Add tooltips and more descriptive text in the examples package
- Allow for password to be input on the Examples->IRC page
- Investigate switching from node to bun
- Investigate making use of .env for sockethub config
- IRC Commands (`\001 ACTION`) not working in node, alternative methods of using octals don't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sockethub.