Closed KiranRamashetty closed 5 years ago
Hi @KiranRamashetty, the reason of your issue is that turbo-http
is still not 100% API compatible with node.js HTTP interfaces.
Could you please setup your app like this:
const service = require('restana')({
defaultRoute: defaultHandler
})
Default restana server
is actually quite performant, no big difference compared to turbo-http
.
Thanks.
When i am trying to use bodyParser.json() I keep getting an error
2/18/2019 2:23:47 PM error: TypeError: stream.on is not a function
Code