fastify / fastify-compress

Fastify compression utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property debug of undefined

devotox opened this issue Β· comments

πŸ› Bug Report

TypeError: Cannot read property 'debug' of undefined
    at Object.onSend (/workspace/node_modules/fastify-compress/index.js:130:21)
    at next (/workspace/node_modules/fastify/lib/hooks.js:185:34)
    at handleResolve (/workspace/node_modules/fastify/lib/hooks.js:192:5)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

To Reproduce

Try to run in google cloud functions

app.register(fastifyCompress, options.compress)

Expected behavior

A clear and concise description of what you expected to happen.

// Paste the expected results here

Your Environment

  • node version: 12
  • fastify version: >=3.0.0
  • os: Mac, Windows, Linux
  • any other relevant information

Can you provide steps to reproduce?

I have done nothing at all. Just registered the plugin. and trying to run it on GCP returns that error

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.