snowby666 / poe-api-wrapper

👾 A Python API wrapper for Poe.com. With this, you will have free access to GPT-4, Claude, Llama, Gemini, Mistral and more! 🚀
https://pypi.org/project/poe-api-wrapper/
GNU General Public License v3.0
677 stars 81 forks source link

Why the api is unstable right now #138

Closed snowby666 closed 2 weeks ago

snowby666 commented 2 months ago

The api has been unstable for a couple of weeks. This is due to cloudflare protection with JS challenge when sending request (spoofed as robots/automatic/spamming requests) to www.quora.com/poe_api/gql_POST plus some redirecting methods. I've tried adding the cf_clearance token but it didnt work.

I'm pretty sure that poe.com also set up an aggressive rate limiter as well.

Solution? I'm working on a way using a headless browser to bypass this (currently testing with playwright). Maybe with addition of proxy_switcher for undetected connection. Any suggestion or further help is appreciated.

FightingFranky commented 2 months ago

The problem occurred more than before after I just sent less than 5 requests.

noseon commented 2 months ago

undetected-chromedriver to do some things and leave this part of your code in pyc compiled so that it doesn't know what you did. I have part of this made to run on Google Colab. If you want the code, I won't post it here for obvious reasons. Create an account on Telegram and post @ and I'll send you the code.

bluusun commented 2 months ago

You may also try pupeteer for Python including stealth plugins.

yuntmiiii commented 2 months ago

so it isnt work now?😢

AkideLiu commented 2 months ago

no luck with even one single message request, got the following error :

RuntimeError: Rate limit exceeded for sending requests to poe.com. Please try again later.
Ma-Yongqiang commented 4 weeks ago

Run on colab

RuntimeError: Rate limit exceeded for sending requests to poe.com. Please try again later.

snowby666 commented 2 weeks ago

This is fixed in the v1.4.3. Please check documentation for new config.