chatgpt-telegram icon indicating copy to clipboard operation
chatgpt-telegram copied to clipboard

Error: Couldn't get access token: failed to decode response: invalid character '<' looking for beginning of value

Open ansge88 opened this issue 2 years ago • 38 comments

Keep getting this error Checked all the files that can be which may be related to this, but didn't find anything. Does anyone know how to fix this issue? image

ansge88 avatar Dec 15 '22 08:12 ansge88

image same here

Mogured avatar Dec 15 '22 08:12 Mogured

image yep!

maksimkustreev avatar Dec 15 '22 08:12 maksimkustreev

same

RoninReilly avatar Dec 15 '22 13:12 RoninReilly

Guys read other issues first it's all in #69

LyghtCode avatar Dec 15 '22 13:12 LyghtCode

Facing the same issue now

pupubird avatar Dec 16 '22 05:12 pupubird

image

pupubird avatar Dec 16 '22 05:12 pupubird

Same here...

Leask avatar Dec 16 '22 06:12 Leask

same here

klt14 avatar Dec 16 '22 09:12 klt14

Same here, any solution ?

achel7ey avatar Dec 18 '22 03:12 achel7ey

same

denda188 avatar Dec 18 '22 05:12 denda188

same lmao

delta-whiplash avatar Dec 18 '22 15:12 delta-whiplash

Any solutions?

davidanger avatar Dec 18 '22 16:12 davidanger

May i know this still have any solution

JDoxian avatar Dec 20 '22 07:12 JDoxian

I think we should use login/password as env vars for getting correct cookies

mmospanenko avatar Dec 21 '22 11:12 mmospanenko

This is because of the CloudFlare bot detection. The cloudflare cookie should also be used but note that this gets refreshed every two hours. So you have to copy the key every 2 hours.

Please stop mentioning that it doesn't work. Just upvote the first post.

Daankrol avatar Dec 22 '22 10:12 Daankrol

@Daankrol hi i copied the __Secure-next-auth.session-token but it doesn't help

dionisvl avatar Dec 22 '22 12:12 dionisvl

Guys read other issues first it's all in #69

I did the changes mentioned in the error #69 and recompiled the code successfully. Now the cloudflare captcha and login works (did not before) in the chromium browser, however the error remains after that when I call the bot in telegram: Error: Couldn't get access token: failed to decode response: invalid character '<' looking for beginning of value

DegenComedian avatar Dec 24 '22 14:12 DegenComedian

any solution?

huy2212 avatar Dec 29 '22 06:12 huy2212

This is because of the CloudFlare bot detection. The cloudflare cookie should also be used but note that this gets refreshed every two hours. So you have to copy the key every 2 hours.

Please stop mentioning that it doesn't work. Just upvote the first post.

"first post"? what first post? link it now please

elvisisvan avatar Dec 31 '22 05:12 elvisisvan

Any update on this ?

nPokemon avatar Jan 03 '23 21:01 nPokemon

Also having trouble with this, I am getting the OPs error.

I initially tried to run the bot regularly without setting up the config on my ubuntu VM, however, I couldn't get past the human verification screen as it would close the browser window before getting to the login screen.

I copied the __Secure-next-auth.session-token into ~/.config/chatgpt.json however that's when I got the OPs "Error: Couldn't get access token: failed to decode response: invalid character '<' looking for beginning of value" Error. The tele bot seems to run within the terminal but within tele just gives that error.

I don't quite understand what this line in the README means "You will then have to create a config file in the following location depending on your OS (replace YOUR_USERNAME_HERE with your username". There is no notation as to what the username is for (tele, chatgpt) and how to add it into the config.

Any help would be appreciated as I would love to get this working.

georgijspi avatar Jan 05 '23 09:01 georgijspi

I don't quite understand what this line in the README means "You will then have to create a config file in the following location depending on your OS (replace YOUR_USERNAME_HERE with your username". There is no notation as to what the username is for (tele, chatgpt) and how to add it into the config.

@georgijspi username is simply name of the user folder in your computer, mine is "Elvis" and im running windows 10 so the path will be C:\Users\Elvis\AppData\Roaming\chatgpt.json

elvisisvan avatar Jan 05 '23 10:01 elvisisvan

have same problem

nnhieu97 avatar Jan 14 '23 11:01 nnhieu97

same here

nnhhuu avatar Jan 14 '23 17:01 nnhhuu

same issue

Screenshot 2023-01-26 at 15 54 57

NikitaKosolapov avatar Jan 26 '23 12:01 NikitaKosolapov

same

dop1e avatar Jan 29 '23 10:01 dop1e

same

swcool76 avatar Jan 30 '23 08:01 swcool76

same

chryseosTang avatar Jan 30 '23 16:01 chryseosTang

same, any ideas?

madmaxxx89 avatar Jan 31 '23 21:01 madmaxxx89

image

Logic Level 100 👍

idrisawad avatar Feb 03 '23 04:02 idrisawad