0

I disabled all plugins on the server except point-of-view.

fastify.register(require('point-of-view'), {
  engine: {
    nunjucks: require('nunjucks')
  },
  templates: 'server/views',
  includeViewExtension: true
})

The handler is calling the view function.

reply.view('/v1/main', {
  nonce: nanoid(1),
  token: nanoid(1)
})

The complete error message is:

{"level":50,"time":1547208496144,"msg":"client error","pid":16013,"hostname":"jer-ryzentwo","err":{"type":"Error","message":"Parse Error","stack":"Error: Parse Error","bytesParsed":0,"code":"HPE_INVALID_METHOD","rawPacket":{"type":"Buffer","data":[22,3,1,2,0,1,0,1,105,3,3,167,247,206,59,236,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},"v":1}

{"level":50,"time":1547208496145,"msg":"client error","pid":16013,"hostname":"jer-ryzentwo","err":{"type":"Error","message":"Parse Error","stack":"Error: Parse Error","bytesParsed":0,"code":"HPE_INVALID_METHOD","rawPacket":{"type":"Buffer","data":[10,0,1,0,2,2,20]}},"v":1}

I cannot pinpoint the source of this issue. Any idea what and why a HPE_INVALID_METHOD error is being generated?

4

0 回答 0