-
Notifications
You must be signed in to change notification settings - Fork 316
Server returned a status code of 403 while downloading https://poe. com #218
Comments
same here |
same problem |
一样的遭遇。 |
yeah same here RuntimeError: Failed to download https://poe.com too many times. |
Its hapenning on older versions as well i was in v0.4.x |
Same problem( |
same here! |
SAME |
same |
Unfortunately same :( |
same here :( |
我经过排查后发现使用GET访问https://poe.com提示403,Enable JavaScript and cookies to continue。我使用selenium库去访问https://poe.com可以成功获取到数据,但需要提前写入cookie:p-b、__cf_bm、cf_clearance才可以 |
"After investigating, I found that accessing https://poe.com/ using GET method prompts a 403 error, 'Enable JavaScript and cookies to continue.' I can successfully retrieve data by using the Selenium library to access https://poe.com/, but it requires writing the cookies: p-b, __cf_bm, and cf_clearance in advance." is what @31702160136 is saying, but what exactly does this mean? |
我对这方面不太熟悉,我认为是需要加载JavaScript后才可以获得到数据,我们通常使用代码进行GET请求页面是无法加载JavaScript的,但是使用浏览器就可以加载JavaScript |
Have you confirmed that this method works? |
昨天用golang的chromedp访问好像也没问题,只需要加入p-b就行 |
我试了一下,确实只需要pb,之前我需要加入__cf_bm和cf_clearance是因为浏览器有缓存 |
确实能有效获得到数据,但是又遇到了新的问题,提示’document‘ is not defined,可能是formkey算法变了 |
me too getting the same |
Same Problem |
same |
1 similar comment
same |
same on an older version too, looks like it's a general problem, not a version specific one. |
does anyone get any idea about how to solve this error? |
getting the same issue, i went to poe, got the token value through inspect and ran the poe.Client and passed the token. This is the error below, please help: File ~\anaconda3\Lib\site-packages\poe_init_.py:446, in Client.connect_ws(self, timeout) File ~\anaconda3\Lib\site-packages\poe_init_.py:182, in Client.setup_connection(self) File ~\anaconda3\Lib\site-packages\poe_init_.py:244, in Client.get_next_data(self, overwrite_vars) File ~\anaconda3\Lib\site-packages\poe_init_.py:84, in request_with_retries(method, *args, **kwargs) RuntimeError: Failed to download https://poe.com/ too many times. |
Please stop bombing this thread unless if you actually have more information. It'll make it easier on the developers. Also, if you have the same issue, place a thumbs up on the first comment. |
and...I feel something like dead project. |
希望作者能注意到这个问题,解决一下 |
Sorry for the lack of an update, but I'm currently busy right now and won't be able to work on this for at least a week. Although if someone submits a PR that fixes this issue then I'll merge it and publish a new release. |
My current understanding of this bug is that Poe has started enforcing some sort of cloudflare-based verification which requires a full web browser. |
Alright, thanks for the update! If your understanding is correct, that would be rather sad to see. @canxin121 I assume you experience the same problem with your async client? |
not the same promblem, i can successfuly download the poe.com, but i can't send query successfullt. |
Maybe selenium would work for this project? |
@canxin121 That's interesting findings. Apparently, a web browser might only be required to retrieve the formkey, then (if even that)? That might leave some room for a hybrid solution where the formkey can get extracted through browser automation and following that the API can still be used. |
@ading2210 可以参考这个项目, 他解决了目前的问题, https://github.com/canxin121/Async-Poe-Client |
Are you able to port those changes from your async client to this library? |
But my library don't have this downloading problem. I don't know why, perhaps because the headers? or aiohttp?I will try to find the reason. |
https://github.com/x404xx/POE-Api seems ok |
@ongspxm |
寄! |
try g4f pypi |
https://github.com/snowby666/poe-api-wrapper is working for me |
I've fixed this in the latest commit, but the library is still broken due to changes in the |
So does it work now or not? |
The text was updated successfully, but these errors were encountered: