-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arkoke token not found in .har file #2087
Comments
I got the same |
1 similar comment
I got the same |
I just tried it and it works fine. |
Obtaining the HAR file from ChatGPTHere's a method to obtain the HAR (HTTP Archive) file from ChatGPT:
At this point, you can right-click on any of the requests and select "Save as HAR" to download the HAR file. Note: The exact request count may vary slightly depending on the specific interaction and browser used. |
where should I put this file? |
In the case of a code like this, just put the har in the "har_and_cookies" folder |
Is there rate limits? (Because i’m recreating clyde in discord and users spam my bot) |
Same problem. Able to get 2 answers from gpt before getting this error. I have a free account. Found this in my har file:
However in har_file.py:
Tried replacing 35536E1E-65B4-4D96-9D97-6ADB7EFF8147 with 3D86FBBA-9D22-402A-B512-3420086BA6CC, now it parses correctly, but i had to comment lines 118 and 119 in order for it to work. I think it solves the problem? Now i get mostly Cloudflare errors. Sometimes i get "Our systems have detected unusual activity coming from your system. Please try again later." error. Is it related? Note: i use a proxy Actions i made while recording har file:
|
Looks like "Our systems have detected unusual activity coming from your system. Please try again later." is related to this issue. @gamelist1990 are u sure u r actually using arkose tokens? |
Sorry, I haven't used OpenAIChat for a while, so I don't know how it works at the moment. |
ChatGPT Reverse Engineering Update: Adapting to Arkose Detection ChangesThese instructions correspond to recent changes in the ChatGPT backend. Problem:Previously, the code relied on checking the Solution:This modification the Here's how the code is updated: Original code: as response:
cls._update_request_args(session)
await raise_for_status(response)
requirements = await response.json()
need_arkose = requirements.get("arkose", {}).get("required")
chat_token = requirements["token"] Updated code: as response:
cls._update_request_args(session)
await raise_for_status(response)
requirements = await response.json()
#Get from text
text_data = json.loads(requirements.get("text", "{}"))
need_arkose = text_data.get("turnstile", {}).get("required", False)
if need_arkose:
arkose_token = text_data.get("turnstile", {}).get("dx")
else:
need_arkose = requirements.get("arkose", {}).get("required", False)
chat_token = requirements["token"] Instead of directly accessing
This change ensures that the code can adapt to both the old and new API responses, allowing it to accurately detect Arkose challenges and proceed with the authentication process. |
I hope this fix helps |
There is a possibility of rate limiting, but I think it is unlikely |
today i got Response 403: Cloudflare detected |
Is it the same no matter how many times you do it? |
It's working normally in the log of my environment If you are blocked many times, please recreate the har file. |
I think it causes by the network, now it runs smooth with another network. |
let's see how it goes for a bit and let me know if there's anything else. |
@gamelist1990 nice fix!!! If you change arkPreURL like i did in the message before, you get this
It looks like arkose check fails every time. You can see that i get a response only when "Arkose: False". Can anyone confirm? If the issue is hard to reproduce, try using a proxy Is "Error 403: Unusual activity has been detected from your device" error related to arkose? Note: "Response 403: Cloudflare detected" is the other error and is not related to this issue. I guess we have to figure out why openai detects unusual activity and also fix the way script parses the har file. |
As mentioned here, the API may have changed. |
By the way, I tried to fix that just now, but it failed spectacularly (^^) |
I think this kind of thing is happening a lot because OpenAI updated and no longer uses Arkose. |
I get .har from Edge Browser >> It runs ok |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
up |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
up |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
up |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
up |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
up |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
@gamelist1990 How is it going? #2105 |
I'm sorry, I completely forgot |
I'll take a look when I can this week |
It runs smooth for me |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
Closing due to inactivity. |
Bug description
When using open ai chat, i get a error saying "no arkose token found in .har file" while i used a .har file. How do i fix it?
Screenshots
Environment
Python version: 3.12.1
Location: France
The text was updated successfully, but these errors were encountered: