You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is this issue currently blocking your project? (yes/no): no
is this issue affecting a production system? (yes/no): no
Context
node version: v14.17.6
module version with issue: "@hapi/hapi": "^20.2.1",
last module version without issue: ?
environment (e.g. node, browser, native): node
used with standalone
any other relevant information:
What are you trying to achieve or the steps to reproduce?
I am using the cookie state autoValue for a persistent id.
When trying to use the onPreResponse to takeover a response, it fails because request.state is null.
TypeError: Cannot use 'in' operator to search for 'tid' in null
at exports.state (/node_modules/.pnpm/@hapi+hapi@20.2.1/node_modules/@hapi/hapi/lib/headers.js:88:57)
at Object.internals.marshal (/node_modules/.pnpm/@hapi+hapi@20.2.1/node_modules/@hapi/hapi/lib/transmit.js:41:15)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.exports.send (/node_modules/.pnpm/@hapi+hapi@20.2.1/node_modules/@hapi/hapi/lib/transmit.js:27:9)
at async Request._reply (/node_modules/.pnpm/@hapi+hapi@20.2.1/node_modules/@hapi/hapi/lib/request.js:457:5)
Support plan
Context
What are you trying to achieve or the steps to reproduce?
I am using the cookie state autoValue for a persistent id.
When trying to use the
onPreResponse
to takeover a response, it fails because request.state is null.Reproducible demo:
What was the result you got?
Exception.
What result did you expect?
I would expect that onPreResponse can be taken over.
The text was updated successfully, but these errors were encountered: