MetaGPT
MetaGPT copied to clipboard
I got error "Retry attempts exhausted. Last exception: Error communicating with OpenAI" when i run starup.py
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 `
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.
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.
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
Is your problem solved? How to solve it? I encountered the same problem as you