``` [POST] /api/auth/session/refresh 11:25:19:59 2...
# support-questions
g
Copy code
[POST] /api/auth/session/refresh
11:25:19:59
2021-07-08T09:25:19.781Z    80afeb81-c13a-45ef-8272-d06132bda786    ERROR    Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client    at ServerResponse.setHeader (_http_outgoing.js:561:11)    at sendJson (/var/task/node_modules/next/dist/next-server/server/api-utils.js:37:5)    at ServerResponse.apiRes.json (/var/task/node_modules/next/dist/next-server/server/api-utils.js:6:297)    at handler (/var/task/main/.next/server/pages/api/order/cart.js:30:21)    at processTicksAndRejections (internal/process/task_queues.js:95:5) {  code: 'ERR_HTTP_HEADERS_SENT'}2021-07-08T09:25:19.784Z    80afeb81-c13a-45ef-8272-d06132bda786    ERROR    Uncaught Exception     {"errorType":"Error","errorMessage":"write after end","code":"ERR_STREAM_WRITE_AFTER_END","stack":["Error [ERR_STREAM_WRITE_AFTER_END]: write after end","    at writeAfterEnd (_http_outgoing.js:694:15)","    at ServerResponse.end (_http_outgoing.js:815:7)","    at sendError (/var/task/node_modules/next/dist/next-server/server/api-utils.js:62:129)","    at apiResolver (/var/task/node_modules/next/dist/next-server/server/api-utils.js:8:373)","    at processTicksAndRejections (internal/process/task_queues.js:95:5)","    at async Server.handleApiRequest (/var/task/node_modules/next/dist/next-server/server/next-server.js:66:462)","    at async Object.fn (/var/task/node_modules/next/dist/next-server/server/next-server.js:58:580)","    at async Router.execute (/var/task/node_modules/next/dist/next-server/server/router.js:25:67)","    at async Server.run (/var/task/node_modules/next/dist/next-server/server/next-server.js:68:1042)","    at async Server.handleRequest (/var/task/node_modules/next/dist/next-server/server/next-server.js:32:504)"]}Unknown application error occurred
25 Views