vvo/iron-session

TypeError: res.getHeader is not a function

mauro-balades opened this issue · 2 comments

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
}

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.

vvo 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)