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
{{ message }}
Repository navigation
"cookies is not iterable" error thrown when trying to iterate over a fetch response that contains a Set-Cookie header #46704
error cookies is not iterable
File:
/Users/dtinth/Projects/contentsgarten/creatorsgarten/src/pages/api/contentsgarten/[action].ts:82:47
Code:
81 | const response = await fetch(backendUrl, {
> 82 | method: request.method,
| ^
83 | headers,
84 | body: request.body,
85 | })
Stacktrace:
TypeError: cookies is not iterable
at get [headers map sorted] (node:internal/deps/undici/undici:1844:34)
at node:internal/deps/undici/undici:1865:43
at Headers Iterator.next (node:internal/deps/undici/undici:1108:26)
at Function.from (<anonymous>)
However, a Node.js version with the fix has not been released yet… So the issue is shifted to Node.js side to release a version of undici with the fix (or rollback the version of undici that adds the regression).
Activity
mcollina commentedon Feb 18, 2023
Thanks for reporting. A fix is incoming.