器人接口信息获取失败 Error: ChatGPT failed to refresh auth token. FetchError: invalid json response body at https://chat.openai.com/api/auth/session reason: Unexpected token < in JSON at position 0
at w.refreshAccessToken (file:///bot/node_modules/chatgpt/build/index.js:1:2376)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async w.ensureAuth (file:///bot/node_modules/chatgpt/build/index.js:1:1081)
at async geGPTReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/proxy/chatgpt.js:11:5)
at async Object.dispatchAiBot (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/event-dispatch-service.js:222:23)
at async Object.robotMsg (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filters.js:251:26)
at async getMsgReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filter-service.js:13:27)
at async Object.filterFriendMsg (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filter-service.js:52:24)
at async getContactTextReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/common/reply.js:6:18)
at async dispatchFriendFilterByMsgType (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-message.js:57:34)
at async WechatyImpl.onMessage (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-message.js:194:13)
msg { type: 1, content: '', url: '' }
使用docker最新版
器人接口信息获取失败 Error: ChatGPT failed to refresh auth token. FetchError: invalid json response body at https://chat.openai.com/api/auth/session reason: Unexpected token < in JSON at position 0 at w.refreshAccessToken (file:///bot/node_modules/chatgpt/build/index.js:1:2376) at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async w.ensureAuth (file:///bot/node_modules/chatgpt/build/index.js:1:1081)
at async geGPTReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/proxy/chatgpt.js:11:5)
at async Object.dispatchAiBot (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/event-dispatch-service.js:222:23)
at async Object.robotMsg (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filters.js:251:26)
at async getMsgReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filter-service.js:13:27)
at async Object.filterFriendMsg (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/service/msg-filter-service.js:52:24)
at async getContactTextReply (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/common/reply.js:6:18)
at async dispatchFriendFilterByMsgType (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-message.js:57:34)
at async WechatyImpl.onMessage (file:///bot/node_modules/wechaty-web-panel/dist/esm/src/handlers/on-message.js:194:13)
msg { type: 1, content: '', url: '' }