Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat gpt API 错误 #33

Closed
villageFlower opened this issue Dec 24, 2022 · 0 comments
Closed

chat gpt API 错误 #33

villageFlower opened this issue Dec 24, 2022 · 0 comments

Comments

@villageFlower
Copy link

使用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: '' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant