openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

report an error

Open Yx7777 opened this issue 2 years ago • 1 comments
trafficstars

error - Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

Yx7777 avatar Apr 30 '23 13:04 Yx7777

Same. This is my full error output:

error - Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at new NodeError (node:internal/errors:399:5) at ServerResponse.setHeader (node:_http_outgoing:645:11) at _res.setHeader (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\base-server.js:129:24) at sendJson (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\api-utils\node.js:195:9) at apiRes.json (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\api-utils\node.js:351:31) at handler (webpack-internal:///(api)/./src/pages/api/get-answer-from-files.ts:50:25) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.apiResolver (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\api-utils\node.js:363:9)
at async DevServer.runApi (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\next-server.js:488:9) at async Object.fn (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\next-server.js:750:37) at async Router.execute (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\router.js:253:36) at async DevServer.run (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\base-server.js:384:29) at async DevServer.run (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\dev\next-dev-server.js:741:20)
at async DevServer.handleRequest (C:\Users\marco\Downloads\openai-cookbook-main\apps\file-q-and-a\nextjs\node_modules\next\dist\server\base-server.js:322:20)

xMarkz avatar Apr 30 '23 14:04 xMarkz

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Sep 27 '23 01:09 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Oct 08 '23 01:10 github-actions[bot]