The problem of being unable to connect to Google and the problem of being unable to connect to openai has been solved when Auto-GPT is deployed locally. An exception is thrown: SYSTEM: Command goodle returned: Error: [WinError 10060] because the connecting party did not reply correctly after a period of time or the connected host did not Response, connection attempt failed.
Article directory
Error report
A friend in the fan group encountered a problem and came to private message me, wanting to use AUTOGPT, but an error occurred (at that time, his heart was cold for a moment, he came to me for help, and then successfully helped him solve it, and record it by the way I hope it can help more friends who encounter this bug and cannot solve it), the error code is as follows:
A screenshot of the content of the error message is as follows :
error translation
The translation of the error message content is as follows :
System: Returning command Goodall: Error: [WinError 10060] The connection attempt failed because the connected party did not properly reply after a period of time or the connected host became unresponsive.
Error reason
Reason for error :
AutoGPT search uses Google engine and needs to use Google search service, but Google cannot be accessed here for normal browsing.
Solution
1. If you want GPT to link to Google, get Google’s API below, address : https://console.cloud.google.com/welcome?project=high-unity-383319&pli=1
2. Create an unorganized latest project
3. Select in turn: autogpt, API and service, library
4. Inputcustom search api
5. Choose management later
6. Select: Credentials, Create Credentials
7. API key
8. After copying the key, go back to the cloned file, then click scripts
inside main.py
, and paste the key behind (GOOGLE_API_KEY=)
9. Open the website : https://programmablesearchengine.google.com/about/ , search for Yinzhang and enter autoGPT, and choose to search in the entire network
10. Click Create, copy the generated ID and add it to CUSTOM_SEARCH_ENGINE_ID=
the back
11. When the welcome back comes out, it means success
12. Try to set the proxy in the command line, please replace xxxx with the actual proxy port number:
set https_proxy=http://127.0.0.1:xxxx
set http_proxy=http://127.0.0.1:xxxx
13. Check whether the proxy settings are in effect
14. After setting up the proxy, you can use the curl command to test whether you can access Google:
curl https://www.google.com
15. Please note that the ping command cannot be used to test here.
16. If setting the proxy still does not solve the problem, you can try the following other solutions:
- Change the network environment
- Check firewall settings
- Use global daili
The above is the solution to the cause of this error. Welcome to leave a message in the comment area to discuss whether it can be solved.If it is useful, please like and collect the article. Thank you for your support. The blogger has the motivation to keep recording the problems encountered.!!!
Thousands of full-stack VIP Q&A group to contact bloggers to help solve errors
Due to the limited time and energy of bloggers, there are too many private messages every day, and there is no way for every fan to reply in time, so reply to VIP fans first, and you can enter the thousand-person full stack by subscribing to the time-limited 9.9 paid column "100 Days Mastering Python from Getting Started to Employment" VIP answering group, get priority answering opportunities (code guidance, remote service), free prostitution 80G learning materials spree, column subscription address: https://blog.csdn.net/yuan2019035055/category_11466020.html
-
Advantages :The author gives priority to answering opportunities (code guidance, remote service), and many bigwigs in the group can hold together to keep warm (big factory internal promotion opportunities). This column is a complete set of teaching specially prepared for students with zero foundation and those who need advanced improvement , From 0 to 100, continue to advance and deepen, and there will be practical projects in the follow-up, so you can easily deal with interviews!
-
Column benefits :Resume guidance, internal referral for recruitment, weekly delivery of physical books, 80G full-stack learning videos, 300 IT e-books: Python, Java, front-end, big data, database, algorithm, crawler, data analysis, machine learning, interview question bank, etc.
-
Note : If you want to get a timely reply, communicate and learn with the big guys, after subscribing to the column, private message the blogger to enter the VIP Q&A group with thousands of people