Skip to content

resp.status >= 300 error when using LangChain's GoogleSearchAPIWrapper #7351

Answered by dosubot bot
leockl asked this question in Q&A
Discussion options

You must be logged in to vote

Answer generated by a 🤖

Answer

I understand that you're encountering an HttpError when trying to use the GoogleSearchAPIWrapper in LangChain. This error typically arises when the HTTP response status is 300 or above, indicating an issue with the request being sent to the Google Search API.

Here's what I suggest you do to troubleshoot this issue:

  1. Double-check that your GOOGLE_CSE_ID and GOOGLE_API_KEY are correctly set and have the necessary permissions to access the Google Search API.

  2. Confirm that the Google Search API is enabled for your project in the Google Cloud Console.

  3. Investigate if there are any restrictions on your API key or the Custom Search Engine ID that might be preven…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by leockl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant