AutoGPT
AutoGPT copied to clipboard
Command google returned: [] Located In USA. Google works on browser
⚠️ Search for existing issues first ⚠️
- [X] I have searched the existing issues, and there is no existing issue for my problem
Which Operating System are you using?
Windows
Which version of Auto-GPT are you using?
Latest Release
GPT-3 or GPT-4?
GPT-3.5
Steps to reproduce 🕹
I tried different version of autogpt including master and stable. all comes with no result from google search.
Current behavior 😯
Command google returned: []
google does not come back with any search results.
Expected behavior 🤔
autogpt should be able to search through google and find results. but the results are just []
Your prompt 📝
# Paste your prompt here
Your Logs 📒
<insert your logs here>
2023-05-11 14:43:23,403 INFO THOUGHTS: I need to start by searching for estate sales in Queens, New York that are ending soon and have paintings available for purchase. I can use a search engine to find websites that list estate sales in the area. Once I have a list of estate sales, I can analyze the pricing of paintings at each sale to identify those that are priced affordably. I should save all relevant information to files to avoid exceeding my short term memory limit. 2023-05-11 14:43:24,085 INFO REASONING: I need to start by identifying estate sales in Queens, New York that are ending soon and have paintings available for purchase. I can use a search engine to find websites that list estate sales in the area. Once I have a list of estate sales, I can analyze the pricing of paintings at each sale to identify those that are priced affordably. I should save all relevant information to files to avoid exceeding my short term memory limit. 2023-05-11 14:43:24,700 INFO PLAN: 2023-05-11 14:43:24,734 INFO - Use a search engine to find websites that list estate sales in Queens, New York 2023-05-11 14:43:25,130 INFO - Analyze the pricing of paintings at each estate sale to identify those that are priced affordably 2023-05-11 14:43:25,488 INFO - Save all relevant information to files to avoid exceeding my short term memory limit 2023-05-11 14:43:25,880 INFO CRITICISM: I need to ensure that I am using the most efficient search engine to find estate sales in Queens, New York. I should also be careful to only save relevant information to files to avoid cluttering my file system. 2023-05-11 14:43:26,439 INFO NEXT ACTION: COMMAND = google ARGUMENTS = {'query': 'estate sales queens new york ending soon paintings'} 2023-05-11 14:43:26,815 INFO Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands'n' to exit program, or enter feedback for ... 2023-05-11 14:43:26,816 INFO Asking user via keyboard... 2023-05-11 14:43:31,654 INFO -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 2023-05-11 14:43:32,926 INFO SYSTEM: Command google returned: []
Have the same issue
Looks like you need to provide Google API Key in .env here:
### GOOGLE
## GOOGLE_API_KEY - Google API key (Example: my-google-api-key)
## CUSTOM_SEARCH_ENGINE_ID - Custom search engine ID (Example: my-custom-search-engine-id)
# GOOGLE_API_KEY=your-google-api-key
# CUSTOM_SEARCH_ENGINE_ID=your-custom-search-engine-id
I have already added that before the error occurred.
Got it as well and even with the google api
Seems like this may be related to a recently change just made by duckduckgo. Affects AutoGPT through the duckduckgo-search package https://github.com/deedy5/duckduckgo_search/issues/56
Seems like this may be related to a recently change just made by duckduckgo. Affects AutoGPT through the duckduckgo-search package deedy5/duckduckgo_search#56
Thanks for your answer. I am very new at this. Could you please let me know what do I have to do to change the quotation marks?
Ok. Apparently, you just have to download the package and update it. Now my autogpt is working fine.
Thanks for your answer.
Have the same Issue here - how do i fix it step by step by updating DuckDuck Go ? How do i update it?
It still doesn't work for me, I've also looked into: https://github.com/Significant-Gravitas/Auto-GPT/issues/2330
But any google search would still throw me:
Command google returned: Error: <HttpError 400 when requesting https://customsearch.googleapis.com/customsearch/v1?q=ways+to+increase+net+worth&num=8&key=[myRealKey]&alt=json returned "Request contains an invalid argument.". Details: "[{'message': 'Request contains an invalid argument.', 'domain': 'global', 'reason': 'badRequest'}]">
Anyone had this?
Have the same Issue here - how do i fix it step by step by updating DuckDuck Go ? How do i update it?
Just click the link and read the readme file and install. https://github.com/deedy5/duckduckgo_search/issues/56
pip install --upgrade duckduckgo-search worked after fix by @deedy5
Great job. Quick and timely update. Appreciate it.
I installed AutoGPT via docker-compose. Is there anything I can do to fix the problem with "google returned []"?
I installed AutoGPT via docker-compose. Is there anything I can do to fix the problem with "google returned []"?
you could open a console for the docker container and then use the pip install --upgrade duckduckgo-search command
Thanks. I am just unable to open a bash shell. Probably because I am no docker expert.
Should be cutting a new release for this soon
Fixed with https://github.com/Significant-Gravitas/Auto-GPT/pull/4142
I used the command pip install urllib3==1.25 to downgrade urllib, and miraculously, it can run now.
I have this error too, can someone help me?
C:\Users\caio_\AppData\Local\Programs\Python\Python310\lib\site-packages\duckduckgo_search\compat.py:20: UserWarning: ddg is deprecated. Use DDGS().text() generator warnings.warn("ddg is deprecated. Use DDGS().text() generator") C:\Users\caio_\AppData\Local\Programs\Python\Python310\lib\site-packages\duckduckgo_search\compat.py:24: UserWarning: parameter page is deprecated, use DDGS().text() generator warnings.warn("parameter page is deprecated, use DDGS().text() generator") C:\Users\caio_\AppData\Local\Programs\Python\Python310\lib\site-packages\duckduckgo_search\compat.py:26: UserWarning: parameter max_results is deprecated, use DDGS().text() warnings.warn("parameter max_results is deprecated, use DDGS().text()")
SYSTEM: Command google returned: Error:
it works, thanks.