rotemweiss57 / gpt-newspaper

GPT based autonomous agent designed to create personalized newspapers tailored to user preferences.
https://tavily.com
MIT License
1.18k stars 161 forks source link

422 Client Error: Unprocessable Entity for url: https://api.tavily.com/search #15

Open SYM1000 opened 8 months ago

SYM1000 commented 8 months ago

Hey, I just cloned the repo and got it up and running on Mac OS(Ventura 13.4) with Python version 3.9.6

I tried making a request with the words: 'Martin Luther King' and 'super bowl' and got this error:

HTTPError: 422 Client Error: Unprocessable Entity for url: https://api.tavily.com/search

And In the console of the browser, I got this error message: POST http://localhost:8000/generate_newspaper 500 (INTERNAL SERVER ERROR) produceNewspaper @ scripts.js:36

wpraiz commented 8 months ago

Same here

image
wpraiz commented 8 months ago
image

It worked here, got out of the corner. I omitted the image parts and it seems to be pulling

xiaokuili commented 8 months ago

Me too image

rotemweiss57 commented 8 months ago

Hi all, can you make sure you entered the API key?

xiaokuili commented 8 months ago

In LangChain, if the parameters are not reasonable, for example, if they are of type 'dict' or too short, a 422 error code will be returned directly. This issue is more likely related to the input parameters rather than a problem with the service.

papanoyang commented 6 months ago

In my case, the same error occurred when I typed in Japanese, but it worked fine when I typed in English.

gurhoter commented 1 month ago

In my case, the same error occurred when I typed in Japanese, but it worked fine when I typed in English.

currently commiting a fix!