meta-ai-api icon indicating copy to clipboard operation
meta-ai-api copied to clipboard

Continuous "Unable to obtain a valid response from Meta AI" Error

Open UsUsStudios opened this issue 1 year ago • 7 comments

No matter what I do, I get this error when I try to prompt the AI:

  File "C:\Users\HP\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\meta_ai_api\main.py", line 174, in prompt
    return self.retry(message, stream=stream, attempts=attempts)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\HP\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\meta_ai_api\main.py", line 197, in retry
    raise Exception(
Exception: Unable to obtain a valid response from Meta AI. Try again later.

I suspect it's some sort of ratelimit because I have been making a ton of requests to it. When I talk to Meta AI on the website it works, so it can't be an IP ban. If it is a ratelimit, when can I expect it to reset?

UsUsStudios avatar Nov 12 '24 20:11 UsUsStudios

Are you using it while being authenticated?

Strvm avatar Nov 12 '24 20:11 Strvm

Yes, I am. It worked before

UsUsStudios avatar Nov 12 '24 21:11 UsUsStudios

I think you are probably getting rate limited at the authentication level. When it does happen, could you try logging in manually at https://www.facebook.com/login/?next to see if that is indeed the issue.

Strvm avatar Nov 12 '24 21:11 Strvm

I can log in to Facebook perfectly fine on the browser. The error doesn't happen when I try to log in, it happens when I run the prompt function. I can see that from the ttraceback.

UsUsStudios avatar Nov 12 '24 21:11 UsUsStudios

Would using the proxy feature, and a good proxy that's not also limited, get around this?

josht000 avatar Dec 20 '24 04:12 josht000

I used with frequency in a short time and I get a Cloudflare block for my IP.

ancientabiding avatar Dec 20 '24 12:12 ancientabiding

OK. Um i guess illl have to try it.

josht000 avatar Dec 20 '24 13:12 josht000