Comments (9)
The error:
{ [Error: Parse Error] bytesParsed: 0, code: 'HPE_INVALID_METHOD' }
from kappa.
I think this is probably with the version of hapi. I did try a simple update and the latest hapi version is incompatible with kappa.
from kappa.
Turns out is was because of mis-documentation. These say "tls" is a sibling of "options", https://github.com/krakenjs/kappa/blob/master/example/local/config.json#L10-L15
https://github.com/krakenjs/kappa/blob/master/example/global/config.json#L11-L16
When in fact it, "tls" should be a member of "options".
{
"host": "localhost",
"port": "env:SSL_PORT|d",
"options": {
"tls": {
"requestCert": true,
"rejectUnauthorized": true,
"key": "file:../key.pem",
"cert": "file:../cert.pem"
},
"payload": { "maxBytes": 10000000 }
}
}
from kappa.
I also tested locally editing kappa to get it compatible with hapi 5.0. Turns out the only things that needed changed was references to undefined functions in hapi.utils
. These should now be called directly on "hoek". Made those changes, and worked with hapi 5.0.
from kappa.
thanks for digging into this @drkibitz. so is this problem due to changes between versions of hapi or incorrect docs in kappa? if the latter, would it be helpful to call out the different configs by version?
from kappa.
@totherik Incorrect docs in kappa. I was just mentioning how easy it was to up hapi to latest.
from kappa.
It was my understanding that the config object is dictated by node's http module, not hapi. I could be mistaken.
from kappa.
Ahh gotcha, so the examples are just missing an options
property/object between server
and tls
. That's easy enough to correct.
from kappa.
Closed by #61
from kappa.
Related Issues (20)
- Add field to json proxied, showing which its original registry was. HOT 10
- Will kappa still be maintained after private modules are released for NPM? HOT 1
- Undefined is not a function in Good Module HOT 4
- Question: NPM CLI setup for Kappa HOT 6
- Usable in read-only mode HOT 2
- npm ERR! shasum check failed HOT 4
- Scope passthrough support HOT 1
- vhost issue + NPM install shasum check failed HOT 3
- Fallback is not happening in Kappa, HOT 2
- Unexpected token when running kappa through docker-compose HOT 2
- Where to find documentation? HOT 3
- Nvm
- Publishing scoped packages HOT 8
- Update kappa example to work with newest version of `good` HOT 3
- npm search should search in all registries HOT 1
- Update to work with hapi@8 HOT 3
- Document increasing (or disabling) socket timeout.
- Log IP addresses
- gzip not supported? HOT 15
- HEAD Requests HOT 5
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 kappa.