Closed svrnwnsch closed 5 years ago
Your hapi version is too old for the nes version. You should upgrade to latest 17.x to make this specific error go away.
Ideally, you should upgrade to hapi 18 + nes 10.
Hm currently upgrading to a newer version brakes to much stuff in my application. Is there somewhere an overview which Nes version works with which Hapi version?
Upgrading to a newer 17.x hapi should not break anything?
Other than that, nes
exposes the version requirement here: https://github.com/hapijs/nes/blob/master/lib/index.js#L94-L96, but that's fairly recent and it might not always contain the earliest supported version (e.g. the error that you're seeing needs at least hapi 17.8.0 to get fixed with the nes version you have).
Thank you. I only looked at the (package.json)[https://github.com/hapijs/nes/blob/master/package.json#L29] file which states for my version 17.x.x. But the file you recommended states in my version
requirements: {
hapi: '>=17.8.1'
},
The problem with upgrading is that we use Typescript with older type definitions and upgrading e.g. brakes tests.
Nevertheless it would be easier if releases of new versions would specify the support Hapi version.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
Nes: 9.1.0 Hapi: 17.5.5
I get the following error sometimes when I send some malformed data via an opened websocket.
Do I need to specify an error handler somewhere? Currently I just set an subscription path. And then connect via a chrome app to the path and then send some data.