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

有的问题无法返回内容,稳定重现 #64

Open
hillerliao opened this issue Mar 17, 2023 · 6 comments
Open

有的问题无法返回内容,稳定重现 #64

hillerliao opened this issue Mar 17, 2023 · 6 comments

Comments

@hillerliao
Copy link

问:
我是学习计算机科学与技术的一名大学学生,随着科技智能的发展,很多工作岗位都会被取代,我想问一下关于我这一个学科将来的就业发展方向,请按照推荐优先级罗列30条较低被智能取代可能的就业方向,并简要介绍(可以多产生几次答案嘛)

TypeError: Cannot read properties of undefined (reading 'data')
    at getOpenAIReply (/code/functions/hello.js:168:24)
    at async handleReply (/code/functions/hello.js:266:26)
    at async module.exports (/code/functions/hello.js:327:14)
@supermikol
Copy link

现在访问openai回来的结果都是timeout。 That's causing this error.

@vixiaoan
Copy link

vixiaoan commented Mar 23, 2023

我也遇到这个问题,ChatGpt给出的修复建议:(
image

@vixiaoan
Copy link

我估计这个问题是网络环境造成的,这样修改也只能是在前端给出错误提示而已,不能从根本上解决问题。

@RidiculousDoge
Copy link
Contributor

查了日志貌似是一次200一次500

11:48:07.144 [POST] https://47seu5v745.hk.aircode.run/hello -> hello.js
11:48:07.152 [CF] skip repeat event
11:48:07.152 [RESPONSE] Status code: 200, Duration: 8 ms
11:48:38.396 TypeError: Cannot read properties of undefined (reading 'data')    at getOpenAIReply (/code/functions/hello.js:174:24)    
at runNextTicks (node:internal/process/task_queues:61:5)    
at listOnTimeout (node:internal/timers:528:9)    
at processTimers (node:internal/timers:502:7)    
at async handleReply (/code/functions/hello.js:326:24)    
at async module.exports (/code/functions/hello.js:395:14)
11:48:38.397 [RESPONSE] Status code: 500, Duration: 50490 ms

@bestony
Copy link
Owner

bestony commented Apr 10, 2023

看起来是超过了 50s 导致的报错。

@rhymecc
Copy link

rhymecc commented Apr 26, 2023

目测,调了timeout时间是恢复了。

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

6 participants