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

I got error "Retry attempts exhausted. Last exception: Error communicating with OpenAI" when i run starup.py #281

Open
menshen opened this issue Aug 31, 2023 · 4 comments

Comments

@menshen
Copy link

menshen commented Aug 31, 2023

this is my commond to run startup.py
python3 startup.py "Design a RecSys like Toutiao"

i got error
`2023-08-31 15:18:20.272 | INFO | metagpt.config:init:44 - Config loading done.
2023-08-31 15:18:21.259 | INFO | metagpt.software_company:invest:39 - Investment: $3.0.
2023-08-31 15:18:21.260 | INFO | metagpt.roles.role:_act:167 - Alice(Product Manager): ready to WritePRD
2023-08-31 15:18:21.346 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 0.086(s), this was the 1st time calling it.
2023-08-31 15:18:22.387 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 1.127(s), this was the 2nd time calling it.
2023-08-31 15:18:23.439 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 2.178(s), this was the 3rd time calling it.
2023-08-31 15:18:23.439 | ERROR | metagpt.provider.openai_api:log_and_reraise:120 - Retry attempts exhausted. Last exception: Error communicating with OpenAI
2023-08-31 15:18:23.440 | WARNING | metagpt.provider.openai_api:log_and_reraise:121 -
Recommend going to https://deepwisdom.feishu.cn/wiki/MsGnwQBjiif9c3koSJNcYaoSnu4#part-XdatdVlhEojeAfxaaEZcMV3ZniQ
See FAQ 5.8

2023-08-31 15:18:24.532 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 0.090(s), this was the 1st time calling it.
2023-08-31 15:18:25.594 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 1.153(s), this was the 2nd time calling it.
2023-08-31 15:18:26.645 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 2.203(s), this was the 3rd time calling it.
2023-08-31 15:18:26.646 | ERROR | metagpt.provider.openai_api:log_and_reraise:120 - Retry attempts exhausted. Last exception: Error communicating with OpenAI
2023-08-31 15:18:26.646 | WARNING | metagpt.provider.openai_api:log_and_reraise:121 -
Recommend going to https://deepwisdom.feishu.cn/wiki/MsGnwQBjiif9c3koSJNcYaoSnu4#part-XdatdVlhEojeAfxaaEZcMV3ZniQ
See FAQ 5.8
`

@voidking
Copy link
Collaborator

voidking commented Sep 4, 2023

Error communicating with OpenAI indicates a network problem.
So you should click the link https://deepwisdom.feishu.cn/wiki/MsGnwQBjiif9c3koSJNcYaoSnu4#part-XdatdVlhEojeAfxaaEZcMV3ZniQ to see the faq 5.8 and get the configure method.

@chansonzhang
Copy link
Contributor

chansonzhang commented Sep 6, 2023

I met the same error, and solved just by setting OPENAI_PROXY in config.yaml. Sees the http_proxy/https_proxy in env not work.

@halilozturkci
Copy link

I got same error. Network and internet connection seemed to work normal.

2023-09-12 14:36:51.527 | INFO | metagpt.config:init:44 - Config loading done.
2023-09-12 14:36:54.830 | INFO | metagpt.software_company:invest:39 - Investment: $3.0.
2023-09-12 14:36:54.831 | INFO | metagpt.roles.role:_act:167 - Alice(Product Manager): ready to WritePRD
2023-09-12 14:36:54.862 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 0.029(s), this was the 1st time calling it.
2023-09-12 14:36:55.865 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 1.032(s), this was the 2nd time calling it.
2023-09-12 14:36:56.867 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 2.034(s), this was the 3rd time calling it.
2023-09-12 14:36:56.868 | ERROR | metagpt.provider.openai_api:log_and_reraise:126 - Retry attempts exhausted. Last exception: Error communicating with OpenAI
2023-09-12 14:36:56.868 | WARNING | metagpt.provider.openai_api:log_and_reraise:127 -
Recommend going to https://deepwisdom.feishu.cn/wiki/MsGnwQBjiif9c3koSJNcYaoSnu4#part-XdatdVlhEojeAfxaaEZcMV3ZniQ
See FAQ 5.8

2023-09-12 14:36:57.871 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 0.002(s), this was the 1st time calling it.
2023-09-12 14:36:58.875 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 1.005(s), this was the 2nd time calling it.
2023-09-12 14:36:59.878 | WARNING | tenacity.after:log_it:44 - Finished call to 'metagpt.provider.openai_api.OpenAIGPTAPI.acompletion_text' after 2.008(s), this was the 3rd time calling it.
2023-09-12 14:36:59.878 | ERROR | metagpt.provider.openai_api:log_and_reraise:126 - Retry attempts exhausted. Last exception: Error communicating with OpenAI
2023-09-12 14:36:59.878 | WARNING | metagpt.provider.openai_api:log_and_reraise:127 -
Recommend going to https://deepwisdom.feishu.cn/wiki/MsGnwQBjiif9c3koSJNcYaoSnu4#part-XdatdVlhEojeAfxaaEZcMV3ZniQ

@zhangjianrong-tal
Copy link

Is your problem solved? How to solve it? I encountered the same problem as you

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

5 participants