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

timeout30秒太少了 #62

Closed
Pandaver opened this issue Feb 19, 2023 · 6 comments
Closed

timeout30秒太少了 #62

Pandaver opened this issue Feb 19, 2023 · 6 comments

Comments

@Pandaver
Copy link

如题,axios 超时时间设置的太短,问题一复杂就容易导致超时,请加长
截图_20230219155516

@Chanzhaoyu
Copy link
Owner

可在 axios.ts5 行自行修改,我加个重新提交的按钮吧

@LuckyZY
Copy link

LuckyZY commented Feb 20, 2023

像Docker容器如何修改这个时间?

@Chanzhaoyu
Copy link
Owner

像Docker容器如何修改这个时间?

这个没有添加参数,你可以暂时在本地修改 docker build

@mobile17682318557
Copy link

可在 axios.ts5 行自行修改,我加个重新提交的按钮吧

我修改了这个参数,设置了1个小时,为什么前端还是2分多钟后就放弃了请求,我看后端接口最后是给出了响应的,但是前端先给了net error

@Pandaver
Copy link
Author

可在 axios.ts5 行自行修改,我加个重新提交的按钮吧

我修改了这个参数,设置了1个小时,为什么前端还是2分多钟后就放弃了请求,我看后端接口最后是给出了响应的,但是前端先给了net error

/service/src/chatgpt.ts 第35行 timeoutMs 改大

@Chanzhaoyu
Copy link
Owner

已添加环境变量 TIMEOUT_MS

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

4 participants