TypeError: res.getHeader is not a function
mauro-balades opened this issue · comments
mauro 🤙 commented
TypeError: res.getHeader is not a function
at addToCookies (webpack-internal:///(rsc)/./node_modules/iron-session/dist/index.mjs:104:39)
at Object.save (webpack-internal:///(rsc)/./node_modules/iron-session/dist/index.mjs:79:21)
- error node_modules/iron-session/dist/index.mjs (112:36) @ getHeader
- error unhandledRejection: Error [TypeError]: res.getHeader is not a function
at addToCookies (webpack-internal:///(rsc)/./node_modules/iron-session/dist/index.mjs:104:39)
at Object.save (webpack-internal:///(rsc)/./node_modules/iron-session/dist/index.mjs:79:21) {
digest: undefined
}
Benjamin BENOIT commented
Exactly the same problem for me. I'm trying to switch from AWS Amplify, which is catastrophic but works, to SST, which produces this problem.
Vincent Voyer commented
Hey there, iron-session v8 is live now 👍 https://github.com/vvo/iron-session. This issue may no longer be relevant. If it is please open a new issue with a reproduction. Thanks!
(if this is specific to SST you may want to open an issue there, thanks)