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
Every time I access the route I created in /api/lambda/token.ts, this error appears and the server shuts down:
access url: /api/token
error Error: Cannot remove headers after they are sent to the client
at ServerResponse.removeHeader (node:_http_outgoing:848:11)
at write (...\node_modules\finalhandler\index.js:287:9)
at AsyncResource.runInAsyncScope (node:async_hooks:211:14)
at listener (...\node_modules\on-finished\index.js:170:15)
at onFinish (...\node_modules\on-finished\index.js:101:5)
at callback (...\node_modules\ee-first\index.js:55:10)
at IncomingMessage.onevent (...\node_modules\ee-first\index.js:93:5)
at IncomingMessage.emit (node:events:524:28)
at IncomingMessage.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1698:12)
at processTicksAndRejections (node:internal/process/task_queues:90:21)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Every time I access the route I created in /api/lambda/token.ts, this error appears and the server shuts down:
Current settings:
In the token.ts file, there is this test code:
export const get = async () => 'Hello Modern.js';
Beta Was this translation helpful? Give feedback.
All reactions