Skip to content

Google Search Failed with Error #61

@OliverOffing

Description

@OliverOffing

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

Google search should return search results

Current behaviour

Google search failed with error: <HttpError 400 when requesting https://customsearch.googleapis.com/customsearch/v1?q=latest+btc+price&num=8&start=1&key=AIzaSyAntxjXqFKmJf0l7zCU7fsl7TmtqWgJk1k+&alt=json returned "Request contains an invalid argument.". Details: "[{'message': 'Request contains an invalid argument.', 'domain': 'global', 'reason': 'badRequest'}]">
Trying DuckDuckGo search instead...

Steps to reproduce

  1. Set up CUSTOM_SEARCH_ENGINE_ID and GOOGLE_API_KEY
  2. Ask the AI agent search for something

Possible solution

It seems we need to update some library perhaps. Ultimately it feels like we need to move away from requirements.txt into something like pdm which uses a lockfile. Or at least the very least set up specific versions in requirements.txt.

Which Operating Systems are you using?

  • Linux
  • macOS
  • Windows

Python Version

  • >= v3.11
  • v3.10
  • v3.9
  • <= v3.8

LoopGPT Version

latest

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of LoopGPT.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions