gpt-tokenizer icon indicating copy to clipboard operation
gpt-tokenizer copied to clipboard

Error: Invariant: Method expects to have requestAsyncStorage, none available

Open chenqilin70 opened this issue 11 months ago • 0 comments

把包引入项目后,运行项目报错。 错误信息:Error: Invariant: Method expects to have requestAsyncStorage, none available Error: Invariant: Method expects to have requestAsyncStorage, none available at Module.headers (webpack-internal:///(sc_server)/./node_modules/next/dist/esm/client/components/headers.js:23:15) at handleReqBailout (webpack-internal:///(sc_server)/./node_modules/next/dist/server/future/route-modules/app-route/helpers/proxy-request.js:76:35) at Object.get (webpack-internal:///(sc_server)/./node_modules/next/dist/server/future/route-modules/app-route/helpers/proxy-request.js:96:13) at requestOpenai (webpack-internal:///(sc_server)/./app/api/common.ts:15:24) at requestSearXNG (webpack-internal:///(sc_server)/./app/api/chat-stream/search.ts:31:80) at createStream (webpack-internal:///(sc_server)/./app/api/chat-stream/route.ts:15:105) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async POST (webpack-internal:///(sc_server)/./app/api/chat-stream/route.ts:43:24)

chenqilin70 avatar Jul 26 '23 13:07 chenqilin70