xueandyue / ChatGPT-AccessToken-Web

本项目基于使用accesstoken的方式实现了网页版 ChatGPT 的前端,是用ChatGPT-Next-Web项目进行修改而得,默认Main分支对接gpt3.5的模型,gpt4分支对接gpt4模型。另外本项目需要的后端服务是pandoranext项目。项目是站在ChatGPT-Next-Web和pandoranext项目的作者肩膀上,感谢他们!
Other
372 stars 107 forks source link

发消息返回-111 #32

Closed lMagal closed 8 months ago

lMagal commented 10 months ago

image

image

xueandyue commented 10 months ago

贴docker logs上看看

mizb commented 9 months ago

是的,一样的报错代码

xueandyue commented 9 months ago

docker logs 里面的东西可不止报错代码

mizb commented 9 months ago

日志如下: chatgpt-auto | yarn run v1.22.21 chatgpt-auto | warning package.json: License should be a valid SPDX license expression chatgpt-auto | % Total % Received % Xferd Average Speed Time Time Time Current chatgpt-auto | Dload Upload Total Spent Left Speed chatgpt-auto | $ yarn fetch && next build 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0warning package.json: License should be a valid SPDX license expression chatgpt-auto | $ node ./scripts/fetch-prompts.mjs chatgpt-auto | [Fetch] fetching cn prompts... chatgpt-auto | [Fetch] fetching en prompts... 100 786 0 786 0 0 832 0 --:--:-- --:--:-- --:--:-- 831 chatgpt-auto | sh: 1: ./PandoraNext: Exec format error chatgpt-auto | [Fetch] failed to fetch cn prompts SyntaxError: Unexpected token < in JSON at position 0 chatgpt-auto | at JSON.parse () chatgpt-auto | at Response.json (file:///app/ChatGPT-AccessToken-Web/node_modules/node-fetch/src/body.js:149:15) chatgpt-auto | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) chatgpt-auto | at async fetchCN (file:///app/ChatGPT-AccessToken-Web/scripts/fetch-prompts.mjs:26:17) chatgpt-auto | at async Promise.all (index 0) chatgpt-auto | [Fetch] saved to ./public/prompts.json chatgpt-auto | info - Loaded env from /app/ChatGPT-AccessToken-Web/.env.local chatgpt-auto | warn - You have enabled experimental feature (appDir) in next.config.js. chatgpt-auto | warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. chatgpt-auto | info - Thank you for testing appDir please leave your feedback at https://nextjs.link/app-feedback chatgpt-auto | chatgpt-auto | Attention: Next.js now collects completely anonymous telemetry regarding usage. chatgpt-auto | This information is used to shape Next.js' roadmap and prioritize features. chatgpt-auto | You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: chatgpt-auto | https://nextjs.org/telemetry chatgpt-auto | chatgpt-auto | info - Creating an optimized production build... chatgpt-auto | Browserslist: caniuse-lite is outdated. Please run: chatgpt-auto | npx browserslist@latest --update-db chatgpt-auto | Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating chatgpt-auto | info - Compiled successfully chatgpt-auto | info - Linting and checking validity of types... chatgpt-auto | info - VS Code settings.json has been created for Next.js' automatic app types, this file can be added to .gitignore if desired chatgpt-auto | Pages directory cannot be found at /app/ChatGPT-AccessToken-Web/pages or /app/ChatGPT-AccessToken-Web/src/pages. If using a custom path, please configure with the no-html-link-for-pages rule in your eslint config file. chatgpt-auto | info - Collecting page data... chatgpt-auto | info - Generating static pages (0/3) chatgpt-auto | info - Generating static pages (3/3) chatgpt-auto | info - Finalizing page optimization... chatgpt-auto | chatgpt-auto | Route (app) Size First Load JS chatgpt-auto | ┌ ○ / 45.9 kB 121 kB chatgpt-auto | ├ ℇ /api/chat-stream 0 B 0 B chatgpt-auto | ├ ℇ /api/config 0 B 0 B chatgpt-auto | └ ℇ /api/openai 0 B 0 B chatgpt-auto | + First Load JS shared by all 75.3 kB chatgpt-auto | ├ chunks/2443530c-2ed997b2364f5a84.js 50.5 kB chatgpt-auto | ├ chunks/961-a7e6d39868e25cc7.js 22.2 kB chatgpt-auto | ├ chunks/main-app-8e9d135ea56d1a54.js 216 B chatgpt-auto | └ chunks/webpack-d5e3dbbfa44b37ea.js 2.42 kB chatgpt-auto | chatgpt-auto | Route (pages) Size First Load JS chatgpt-auto | ─ ○ /404 178 B 86.9 kB chatgpt-auto | + First Load JS shared by all 86.7 kB chatgpt-auto | ├ chunks/main-41ed2eb3ed5c2fdc.js 84.1 kB chatgpt-auto | ├ chunks/pages/_app-c544d6df833bfd4a.js 192 B chatgpt-auto | └ chunks/webpack-d5e3dbbfa44b37ea.js 2.42 kB chatgpt-auto | chatgpt-auto | ƒ Middleware 28.9 kB chatgpt-auto | chatgpt-auto | ℇ (Streaming) server-side renders with streaming (uses React 18 SSR streaming or Server Components) chatgpt-auto | ○ (Static) automatically rendered as static HTML (uses no initial props) chatgpt-auto | chatgpt-auto | Done in 106.08s. chatgpt-auto | yarn run v1.22.21 chatgpt-auto | warning package.json: License should be a valid SPDX license expression chatgpt-auto | $ next start chatgpt-auto | ready - started server on 0.0.0.0:3000, url: http://localhost:3000 chatgpt-auto | info - Loaded env from /app/ChatGPT-AccessToken-Web/.env.local chatgpt-auto | warn - You have enabled experimental feature (appDir) in next.config.js. chatgpt-auto | warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. chatgpt-auto | info - Thank you for testing appDir please leave your feedback at https://nextjs.link/app-feedback chatgpt-auto | chatgpt-auto | warn - "next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead. chatgpt-auto | warn - "next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead. chatgpt-auto | warn - "next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead. chatgpt-auto | key ak-iJdCNmdW5Qtjn878RVpUU4Y4eIbOXiUMuwxUTwxLkTp2QOIx chatgpt-auto | 用户token: null chatgpt-auto | ip: null chatgpt-auto | forwardedFor: 203.156.222.34 chatgpt-auto | 用户ip: 203.156.222.34 chatgpt-auto | api_path chatgpt-auto | gpt-3.5 chatgpt-auto | [Auth] allowed hashed codes: [ 'fae0b27c451c728867a567e8c1bb4e53' ] chatgpt-auto | [Auth] got access code: 666 chatgpt-auto | [Auth] hashed access code: fae0b27c451c728867a567e8c1bb4e53 chatgpt-auto | ip: null chatgpt-auto | forwardedFor: 203.156.222.34 chatgpt-auto | [User IP] 203.156.222.34 chatgpt-auto | [Time] 12/25/2023, 1:29:12 AM chatgpt-auto | apiPath chatgpt-auto | /api/chat-stream chatgpt-auto | ak-iJdCNmdW5Qtjn878RVpUU4Y4eIbOXiUMuwxUTwxLkTp2QOIx chatgpt-auto | [Proxy] v1/chat/completions chatgpt-auto | [Base Url] https://api.openai.com chatgpt-auto | [Chat Stream] [TypeError: fetch failed] { chatgpt-auto | cause: [Error: connect ECONNREFUSED 127.0.0.1:8008] { chatgpt-auto | errno: -111, chatgpt-auto | code: 'ECONNREFUSED', chatgpt-auto | syscall: 'connect', chatgpt-auto | address: '127.0.0.1', chatgpt-auto | port: 8008 chatgpt-auto | } chatgpt-auto | } chatgpt-auto | 用户token: null chatgpt-auto | ip: null chatgpt-auto | forwardedFor: 203.156.222.35 chatgpt-auto | 用户ip: 203.156.222.35 chatgpt-auto | api_path chatgpt-auto | gpt-3.5-turbo chatgpt-auto | [Auth] allowed hashed codes: [ 'fae0b27c451c728867a567e8c1bb4e53' ] chatgpt-auto | [Auth] got access code: 666 chatgpt-auto | [Auth] hashed access code: fae0b27c451c728867a567e8c1bb4e53 chatgpt-auto | ip: null chatgpt-auto | forwardedFor: 203.156.222.35 chatgpt-auto | [User IP] 203.156.222.35 chatgpt-auto | [Time] 12/25/2023, 1:29:12 AM chatgpt-auto | apiPath chatgpt-auto | /api/openai chatgpt-auto | ak-iJdCNmdW5Qtjn878RVpUU4Y4eIbOXiUMuwxUTwxLkTp2QOIx chatgpt-auto | [Proxy] backend-api/conversation/gen_title chatgpt-auto | [Base Url] https://api.openai.com chatgpt-auto | [OpenAI] <ref 1> ReadableStream { chatgpt-auto | _state: 'readable', chatgpt-auto | _reader: undefined, chatgpt-auto | _storedError: undefined, chatgpt-auto | _disturbed: false, chatgpt-auto | _readableStreamController: ReadableStreamDefaultController { chatgpt-auto | _controlledReadableStream: [Circular 1], chatgpt-auto | _queue: S { chatgpt-auto | _cursor: 0, chatgpt-auto | _size: 1, chatgpt-auto | _front: { chatgpt-auto | _elements: [ chatgpt-auto | { chatgpt-auto | value: Uint8Array(319) [ chatgpt-auto | 123, chatgpt-auto | 34, chatgpt-auto | 109, chatgpt-auto | 101, chatgpt-auto | 115, chatgpt-auto | 115, chatgpt-auto | 97, chatgpt-auto | 103, chatgpt-auto | 101, chatgpt-auto | 115, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 91, chatgpt-auto | 123, chatgpt-auto | 34, chatgpt-auto | 114, chatgpt-auto | 111, chatgpt-auto | 108, chatgpt-auto | 101, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 117, chatgpt-auto | 115, chatgpt-auto | 101, chatgpt-auto | 114, chatgpt-auto | 34, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 99, chatgpt-auto | 111, chatgpt-auto | 110, chatgpt-auto | 116, chatgpt-auto | 101, chatgpt-auto | 110, chatgpt-auto | 116, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 229, chatgpt-auto | 156, chatgpt-auto | 168, chatgpt-auto | 229, chatgpt-auto | 144, chatgpt-auto | 151, chatgpt-auto | 239, chatgpt-auto | 188, chatgpt-auto | 159, chatgpt-auto | 34, chatgpt-auto | 125, chatgpt-auto | 44, chatgpt-auto | 123, chatgpt-auto | 34, chatgpt-auto | 114, chatgpt-auto | 111, chatgpt-auto | 108, chatgpt-auto | 101, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 117, chatgpt-auto | 115, chatgpt-auto | 101, chatgpt-auto | 114, chatgpt-auto | 34, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 99, chatgpt-auto | 111, chatgpt-auto | 110, chatgpt-auto | 116, chatgpt-auto | 101, chatgpt-auto | 110, chatgpt-auto | 116, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 228, chatgpt-auto | 189, chatgpt-auto | 191, chatgpt-auto | 231, chatgpt-auto | 148, chatgpt-auto | 168, chatgpt-auto | 229, chatgpt-auto | 155, chatgpt-auto | 155, chatgpt-auto | 229, chatgpt-auto | 136, chatgpt-auto | 176, chatgpt-auto | 228, chatgpt-auto | 186, chatgpt-auto | 148, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 170, chatgpt-auto | 229, chatgpt-auto | 173, chatgpt-auto | 151, chatgpt-auto | 231, chatgpt-auto | 155, chatgpt-auto | 180, chatgpt-auto | 230, chatgpt-auto | 142, chatgpt-auto | 165, chatgpt-auto | 232, chatgpt-auto | 191, chatgpt-auto | 148, chatgpt-auto | 229, chatgpt-auto | 155, chatgpt-auto | 158, chatgpt-auto | 232, chatgpt-auto | 191, chatgpt-auto | 153, chatgpt-auto | 229, chatgpt-auto | 143, chatgpt-auto | 165, chatgpt-auto | 232, chatgpt-auto | 175, chatgpt-auto | 157, chatgpt-auto | 231, chatgpt-auto | 154, chatgpt-auto | 132, chatgpt-auto | 231, chatgpt-auto | 174, chatgpt-auto | 128, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 187, chatgpt-auto | 233, chatgpt-auto | 162, chatgpt-auto | 152, chatgpt-auto | 239, chatgpt-auto | 188, chatgpt-auto | 140, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 141, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 232, chatgpt-auto | 167, chatgpt-auto | 163, chatgpt-auto | 233, chatgpt-auto | 135, chatgpt-auto | 138, chatgpt-auto | 227, chatgpt-auto | 128, chatgpt-auto | 129, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 141, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 230, chatgpt-auto | 160, chatgpt-auto | 135, chatgpt-auto | 231, chatgpt-auto | 130, chatgpt-auto | 185, chatgpt-auto | 227, chatgpt-auto | 128, chatgpt-auto | 129, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 141, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 232, chatgpt-auto | 175, chatgpt-auto | 173, chatgpt-auto | 230, chatgpt-auto | 176, chatgpt-auto | 148, chatgpt-auto | 232, chatgpt-auto | 175, chatgpt-auto | 141, chatgpt-auto | 227, chatgpt-auto | 128, chatgpt-auto | 129, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 141, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 229, chatgpt-auto | 164, chatgpt-auto | 154, chatgpt-auto | 228, chatgpt-auto | 189, chatgpt-auto | 153, chatgpt-auto | 230, chatgpt-auto | 150, chatgpt-auto | 135, chatgpt-auto | 230, chatgpt-auto | 156, chatgpt-auto | 172, chatgpt-auto | 239, chatgpt-auto | 188, chatgpt-auto | 140, chatgpt-auto | 229, chatgpt-auto | 166, chatgpt-auto | 130, chatgpt-auto | 230, chatgpt-auto | 158, chatgpt-auto | 156, chatgpt-auto | 230, chatgpt-auto | 178, chatgpt-auto | 161, chatgpt-auto | 230, chatgpt-auto | 156, chatgpt-auto | 137, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 187, chatgpt-auto | 233, chatgpt-auto | 162, chatgpt-auto | 152, chatgpt-auto | 239, chatgpt-auto | 188, chatgpt-auto | 140, chatgpt-auto | 232, chatgpt-auto | 175, chatgpt-auto | 183, chatgpt-auto | 231, chatgpt-auto | 155, chatgpt-auto | 180, chatgpt-auto | 230, chatgpt-auto | 142, chatgpt-auto | 165, chatgpt-auto | 232, chatgpt-auto | 191, chatgpt-auto | 148, chatgpt-auto | 229, chatgpt-auto | 155, chatgpt-auto | 158, chatgpt-auto | 226, chatgpt-auto | 128, chatgpt-auto | 156, chatgpt-auto | 233, chatgpt-auto | 151, chatgpt-auto | 178, chatgpt-auto | 232, chatgpt-auto | 129, chatgpt-auto | 138, chatgpt-auto | 226, chatgpt-auto | 128, chatgpt-auto | 157, chatgpt-auto | 34, chatgpt-auto | 125, chatgpt-auto | 93, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 109, chatgpt-auto | 111, chatgpt-auto | 100, chatgpt-auto | 101, chatgpt-auto | 108, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 103, chatgpt-auto | 112, chatgpt-auto | 116, chatgpt-auto | 45, chatgpt-auto | 51, chatgpt-auto | 46, chatgpt-auto | 53, chatgpt-auto | 45, chatgpt-auto | 116, chatgpt-auto | 117, chatgpt-auto | 114, chatgpt-auto | 98, chatgpt-auto | 111, chatgpt-auto | 34, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 116, chatgpt-auto | 101, chatgpt-auto | 109, chatgpt-auto | 112, chatgpt-auto | 101, chatgpt-auto | 114, chatgpt-auto | 97, chatgpt-auto | 116, chatgpt-auto | 117, chatgpt-auto | 114, chatgpt-auto | 101, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 49, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 112, chatgpt-auto | 114, chatgpt-auto | 101, chatgpt-auto | 115, chatgpt-auto | 101, chatgpt-auto | 110, chatgpt-auto | 99, chatgpt-auto | 101, chatgpt-auto | 95, chatgpt-auto | 112, chatgpt-auto | 101, chatgpt-auto | 110, chatgpt-auto | 97, chatgpt-auto | 108, chatgpt-auto | 116, chatgpt-auto | 121, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 48, chatgpt-auto | 125 chatgpt-auto | ], chatgpt-auto | size: 1 chatgpt-auto | } chatgpt-auto | ], chatgpt-auto | _next: undefined chatgpt-auto | }, chatgpt-auto | _back: { chatgpt-auto | _elements: [ chatgpt-auto | { chatgpt-auto | value: Uint8Array(319) [ chatgpt-auto | 123, chatgpt-auto | 34, chatgpt-auto | 109, chatgpt-auto | 101, chatgpt-auto | 115, chatgpt-auto | 115, chatgpt-auto | 97, chatgpt-auto | 103, chatgpt-auto | 101, chatgpt-auto | 115, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 91, chatgpt-auto | 123, chatgpt-auto | 34, chatgpt-auto | 114, chatgpt-auto | 111, chatgpt-auto | 108, chatgpt-auto | 101, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 117, chatgpt-auto | 115, chatgpt-auto | 101, chatgpt-auto | 114, chatgpt-auto | 34, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 99, chatgpt-auto | 111, chatgpt-auto | 110, chatgpt-auto | 116, chatgpt-auto | 101, chatgpt-auto | 110, chatgpt-auto | 116, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 229, chatgpt-auto | 156, chatgpt-auto | 168, chatgpt-auto | 229, chatgpt-auto | 144, chatgpt-auto | 151, chatgpt-auto | 239, chatgpt-auto | 188, chatgpt-auto | 159, chatgpt-auto | 34, chatgpt-auto | 125, chatgpt-auto | 44, chatgpt-auto | 123, chatgpt-auto | 34, chatgpt-auto | 114, chatgpt-auto | 111, chatgpt-auto | 108, chatgpt-auto | 101, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 117, chatgpt-auto | 115, chatgpt-auto | 101, chatgpt-auto | 114, chatgpt-auto | 34, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 99, chatgpt-auto | 111, chatgpt-auto | 110, chatgpt-auto | 116, chatgpt-auto | 101, chatgpt-auto | 110, chatgpt-auto | 116, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 228, chatgpt-auto | 189, chatgpt-auto | 191, chatgpt-auto | 231, chatgpt-auto | 148, chatgpt-auto | 168, chatgpt-auto | 229, chatgpt-auto | 155, chatgpt-auto | 155, chatgpt-auto | 229, chatgpt-auto | 136, chatgpt-auto | 176, chatgpt-auto | 228, chatgpt-auto | 186, chatgpt-auto | 148, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 170, chatgpt-auto | 229, chatgpt-auto | 173, chatgpt-auto | 151, chatgpt-auto | 231, chatgpt-auto | 155, chatgpt-auto | 180, chatgpt-auto | 230, chatgpt-auto | 142, chatgpt-auto | 165, chatgpt-auto | 232, chatgpt-auto | 191, chatgpt-auto | 148, chatgpt-auto | 229, chatgpt-auto | 155, chatgpt-auto | 158, chatgpt-auto | 232, chatgpt-auto | 191, chatgpt-auto | 153, chatgpt-auto | 229, chatgpt-auto | 143, chatgpt-auto | 165, chatgpt-auto | 232, chatgpt-auto | 175, chatgpt-auto | 157, chatgpt-auto | 231, chatgpt-auto | 154, chatgpt-auto | 132, chatgpt-auto | 231, chatgpt-auto | 174, chatgpt-auto | 128, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 187, chatgpt-auto | 233, chatgpt-auto | 162, chatgpt-auto | 152, chatgpt-auto | 239, chatgpt-auto | 188, chatgpt-auto | 140, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 141, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 232, chatgpt-auto | 167, chatgpt-auto | 163, chatgpt-auto | 233, chatgpt-auto | 135, chatgpt-auto | 138, chatgpt-auto | 227, chatgpt-auto | 128, chatgpt-auto | 129, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 141, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 230, chatgpt-auto | 160, chatgpt-auto | 135, chatgpt-auto | 231, chatgpt-auto | 130, chatgpt-auto | 185, chatgpt-auto | 227, chatgpt-auto | 128, chatgpt-auto | 129, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 141, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 232, chatgpt-auto | 175, chatgpt-auto | 173, chatgpt-auto | 230, chatgpt-auto | 176, chatgpt-auto | 148, chatgpt-auto | 232, chatgpt-auto | 175, chatgpt-auto | 141, chatgpt-auto | 227, chatgpt-auto | 128, chatgpt-auto | 129, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 141, chatgpt-auto | 232, chatgpt-auto | 166, chatgpt-auto | 129, chatgpt-auto | 229, chatgpt-auto | 164, chatgpt-auto | 154, chatgpt-auto | 228, chatgpt-auto | 189, chatgpt-auto | 153, chatgpt-auto | 230, chatgpt-auto | 150, chatgpt-auto | 135, chatgpt-auto | 230, chatgpt-auto | 156, chatgpt-auto | 172, chatgpt-auto | 239, chatgpt-auto | 188, chatgpt-auto | 140, chatgpt-auto | 229, chatgpt-auto | 166, chatgpt-auto | 130, chatgpt-auto | 230, chatgpt-auto | 158, chatgpt-auto | 156, chatgpt-auto | 230, chatgpt-auto | 178, chatgpt-auto | 161, chatgpt-auto | 230, chatgpt-auto | 156, chatgpt-auto | 137, chatgpt-auto | 228, chatgpt-auto | 184, chatgpt-auto | 187, chatgpt-auto | 233, chatgpt-auto | 162, chatgpt-auto | 152, chatgpt-auto | 239, chatgpt-auto | 188, chatgpt-auto | 140, chatgpt-auto | 232, chatgpt-auto | 175, chatgpt-auto | 183, chatgpt-auto | 231, chatgpt-auto | 155, chatgpt-auto | 180, chatgpt-auto | 230, chatgpt-auto | 142, chatgpt-auto | 165, chatgpt-auto | 232, chatgpt-auto | 191, chatgpt-auto | 148, chatgpt-auto | 229, chatgpt-auto | 155, chatgpt-auto | 158, chatgpt-auto | 226, chatgpt-auto | 128, chatgpt-auto | 156, chatgpt-auto | 233, chatgpt-auto | 151, chatgpt-auto | 178, chatgpt-auto | 232, chatgpt-auto | 129, chatgpt-auto | 138, chatgpt-auto | 226, chatgpt-auto | 128, chatgpt-auto | 157, chatgpt-auto | 34, chatgpt-auto | 125, chatgpt-auto | 93, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 109, chatgpt-auto | 111, chatgpt-auto | 100, chatgpt-auto | 101, chatgpt-auto | 108, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 34, chatgpt-auto | 103, chatgpt-auto | 112, chatgpt-auto | 116, chatgpt-auto | 45, chatgpt-auto | 51, chatgpt-auto | 46, chatgpt-auto | 53, chatgpt-auto | 45, chatgpt-auto | 116, chatgpt-auto | 117, chatgpt-auto | 114, chatgpt-auto | 98, chatgpt-auto | 111, chatgpt-auto | 34, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 116, chatgpt-auto | 101, chatgpt-auto | 109, chatgpt-auto | 112, chatgpt-auto | 101, chatgpt-auto | 114, chatgpt-auto | 97, chatgpt-auto | 116, chatgpt-auto | 117, chatgpt-auto | 114, chatgpt-auto | 101, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 49, chatgpt-auto | 44, chatgpt-auto | 34, chatgpt-auto | 112, chatgpt-auto | 114, chatgpt-auto | 101, chatgpt-auto | 115, chatgpt-auto | 101, chatgpt-auto | 110, chatgpt-auto | 99, chatgpt-auto | 101, chatgpt-auto | 95, chatgpt-auto | 112, chatgpt-auto | 101, chatgpt-auto | 110, chatgpt-auto | 97, chatgpt-auto | 108, chatgpt-auto | 116, chatgpt-auto | 121, chatgpt-auto | 34, chatgpt-auto | 58, chatgpt-auto | 48, chatgpt-auto | 125 chatgpt-auto | ], chatgpt-auto | size: 1 chatgpt-auto | } chatgpt-auto | ], chatgpt-auto | _next: undefined chatgpt-auto | } chatgpt-auto | }, chatgpt-auto | _queueTotalSize: 1, chatgpt-auto | _started: true, chatgpt-auto | _closeRequested: true, chatgpt-auto | _pullAgain: false, chatgpt-auto | _pulling: false, chatgpt-auto | _strategySizeAlgorithm: [Function], chatgpt-auto | _strategyHWM: 1, chatgpt-auto | _pullAlgorithm: [Function], chatgpt-auto | _cancelAlgorithm: [Function] chatgpt-auto | } chatgpt-auto | } [TypeError: fetch failed] { chatgpt-auto | cause: [Error: connect ECONNREFUSED 127.0.0.1:8008] { chatgpt-auto | errno: -111, chatgpt-auto | code: 'ECONNREFUSED', chatgpt-auto | syscall: 'connect', chatgpt-auto | address: '127.0.0.1', chatgpt-auto | port: 8008 chatgpt-auto | } chatgpt-auto | }

lMagal commented 9 months ago

日志跟mizb发的一样的

xueandyue commented 9 months ago

日志跟mizb发的一样的

你是用docker compose部署 还是直接用docker ?

lMagal commented 9 months ago

直接docker docker run -e ACCESS_TOKEN="你的access_token" -e CODE="要设置的访问密码" -e Jwturl="你的Jwturl" -p 3000:3000 -d xueandyue/next-web-pandora:accessToken

access_token 跟 jwturl 都是没问题的

xueandyue commented 9 months ago

直接docker docker run -e ACCESS_TOKEN="你的access_token" -e CODE="要设置的访问密码" -e Jwturl="你的Jwturl" -p 3000:3000 -d xueandyue/next-web-pandora:accessToken

access_token 跟 jwturl 都是没问题的

使用 uname -m 命令来查看你的系统架构,看看是啥,当初构建镜像的时候,用了amd的架构

lMagal commented 9 months ago

image

x86_64

xueandyue commented 9 months ago

image

x86_64

可以重新new 一个容器,贴下docker logs 吗?我看看有没有 sh: 1: ./PandoraNext: Exec format error

lMagal commented 9 months ago

有的 root@hecs-67687:~# docker logs chatgpt yarn run v1.22.21 warning package.json: License should be a valid SPDX license expression $ yarn fetch && next build warning package.json: License should be a valid SPDX license expression $ node ./scripts/fetch-prompts.mjs [Fetch] fetching cn prompts... [Fetch] fetching en prompts... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[Fetch] failed to fetch cn prompts SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///app/ChatGPT-AccessToken-Web/node_modules/node-fetch/src/body.js:149:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetchCN (file:///app/ChatGPT-AccessToken-Web/scripts/fetch-prompts.mjs:26:17) at async Promise.all (index 0) 100 787 0 787 0 0 761 0 --:--:-- 0:00:01 --:--:-- 761 sh: 1: ./PandoraNext: Exec format error [Fetch] failed to fetch en prompts Error: Request timeout at Timeout._onTimeout (file:///app/ChatGPT-AccessToken-Web/scripts/fetch-prompts.mjs:16:14) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) [Fetch] saved to ./public/prompts.json

lMagal commented 9 months ago

完整的日志 yarn run v1.22.21 warning package.json: License should be a valid SPDX license expression $ yarn fetch && next build warning package.json: License should be a valid SPDX license expression $ node ./scripts/fetch-prompts.mjs [Fetch] fetching cn prompts... [Fetch] fetching en prompts... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[Fetch] failed to fetch cn prompts SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///app/ChatGPT-AccessToken-Web/node_modules/node-fetch/src/body.js:149:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetchCN (file:///app/ChatGPT-AccessToken-Web/scripts/fetch-prompts.mjs:26:17) at async Promise.all (index 0) 100 787 0 787 0 0 761 0 --:--:-- 0:00:01 --:--:-- 761 sh: 1: ./PandoraNext: Exec format error [Fetch] failed to fetch en prompts Error: Request timeout at Timeout._onTimeout (file:///app/ChatGPT-AccessToken-Web/scripts/fetch-prompts.mjs:16:14) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) [Fetch] saved to ./public/prompts.json info - Loaded env from /app/ChatGPT-AccessToken-Web/.env.local warn - You have enabled experimental feature (appDir) in next.config.js. warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

info - Thank you for testing appDir please leave your feedback at https://nextjs.link/app-feedback Attention: Next.js now collects completely anonymous telemetry regarding usage. This information is used to shape Next.js' roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: https://nextjs.org/telemetry

info - Creating an optimized production build... Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating info - Compiled successfully info - Linting and checking validity of types... info - VS Code settings.json has been created for Next.js' automatic app types, this file can be added to .gitignore if desired Pages directory cannot be found at /app/ChatGPT-AccessToken-Web/pages or /app/ChatGPT-AccessToken-Web/src/pages. If using a custom path, please configure with the no-html-link-for-pages rule in your eslint config file. info - Collecting page data... info - Generating static pages (0/3) info - Generating static pages (3/3) info - Finalizing page optimization...

Route (app) Size First Load JS ┌ ○ / 45.9 kB 121 kB ├ ? /api/chat-stream 0 B 0 B ├ ? /api/config 0 B 0 B └ ? /api/openai 0 B 0 B

Route (pages) Size First Load JS ─ ○ /404 178 B 86.9 kB

? Middleware 28.9 kB

? (Streaming) server-side renders with streaming (uses React 18 SSR streaming or Server Components) ○ (Static) automatically rendered as static HTML (uses no initial props)

Done in 180.60s. yarn run v1.22.21 warning package.json: License should be a valid SPDX license expression $ next start ready - started server on 0.0.0.0:3000, url: http://localhost:3000 info - Loaded env from /app/ChatGPT-AccessToken-Web/.env.local warn - You have enabled experimental feature (appDir) in next.config.js. warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. info - Thank you for testing appDir please leave your feedback at https://nextjs.link/app-feedback

warn - "next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead.

xueandyue commented 9 months ago

docker pull xueandyue/next-web-pandora:accessToken docker run -e ACCESS_TOKEN="你的access_token" -e CODE="要设置的访问密码" -e Jwturl="你的Jwturl" -p 3000:3000 -d xueandyue/next-web-pandora:accessToken
@lMagal 先pull ,再创建试试

lMagal commented 9 months ago

不好意思,后面忘记, 我今天刚重试了, 还是一样的

xueandyue commented 9 months ago

不好意思,后面忘记, 我今天刚重试了, 还是一样的

那只能试试这个了 https://github.com/xueandyue/ChatGPT-AccessToken-Web#%E5%A4%87%E7%94%A8%E9%83%A8%E7%BD%B2%E4%BA%8C%E5%88%A9%E7%94%A8access_token%E6%94%AF%E6%8C%81%E5%A4%9A%E7%B3%BB%E7%BB%9F%E6%9E%B6%E6%9E%84

chen834921478 commented 9 months ago

我上午也遇到这个。发现是jwt 配置错误。 curl -fLO "https://xxxxx/license.jwt" 把双引号里的全部复制进去。 Jwturl="https://xxxxx/license.jwt" 。会不会是作者,注意Jwturl要去掉">license.jwt"部分 这句话引起的歧义,这个说的应该是下面那个

xueandyue commented 9 months ago

我上午也遇到这个。发现是jwt 配置错误。 curl -fLO "https://xxxxx/license.jwt" 把双引号里的全部复制进去。 Jwturl="https://xxxxx/license.jwt" 。会不会是作者,注意Jwturl要去掉">license.jwt"部分 这句话引起的歧义,这个说的应该是下面那个

哈哈,那我改下,避免歧义

King6880 commented 9 months ago

还有这个问题

xueandyue commented 9 months ago

还有这个问题

https://github.com/xueandyue/ChatGPT-AccessToken-Web/issues/34