Skip to content
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

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

Open
ansge88 opened this issue Dec 15, 2022 · 38 comments

Comments

@ansge88
Copy link

ansge88 commented Dec 15, 2022

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

@Mogured
Copy link

Mogured commented Dec 15, 2022

image
same here

@maksimkustreev
Copy link

image
yep!

@RoninReilly
Copy link

same

@LyghtCode
Copy link

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

@pupubird
Copy link

Facing the same issue now

@pupubird
Copy link

image

@Leask
Copy link

Leask commented Dec 16, 2022

Same here...

@klt14
Copy link

klt14 commented Dec 16, 2022

same here

@achel7ey
Copy link

Same here, any solution ?

@denda188
Copy link

same

@delta-whiplash
Copy link

same lmao

@davidanger
Copy link

Any solutions?

@JDoxian
Copy link

JDoxian commented Dec 20, 2022

May i know this still have any solution

@mmospanenko
Copy link

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

@Daankrol
Copy link

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.

@dionisvl
Copy link

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

@DegenComedian
Copy link

DegenComedian commented Dec 24, 2022

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

@huy2212
Copy link

huy2212 commented Dec 29, 2022

any solution?

@elvisisvan
Copy link

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

@nPokemon
Copy link

nPokemon commented Jan 3, 2023

Any update on this ?

@georgijspi
Copy link

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.

@elvisisvan
Copy link

elvisisvan commented Jan 5, 2023

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

@nnhieu97
Copy link

have same problem

@nnhhuu
Copy link

nnhhuu commented Jan 14, 2023

same here

@NikitaKosolapov
Copy link

NikitaKosolapov commented Jan 26, 2023

same issue

Screenshot 2023-01-26 at 15 54 57

@dop1e
Copy link

dop1e commented Jan 29, 2023

same

2 similar comments
@swcool76
Copy link

same

@chryseosTang
Copy link

same

@madmaxxx89
Copy link

same, any ideas?

@thadriss
Copy link

thadriss commented Feb 3, 2023

image

Logic Level 100 👍

@cgonIT
Copy link

cgonIT commented Feb 3, 2023

@m1guelpf do you think you can spend a couple of mins answering how to solve this problem?

My enviroment:
Windows 11, dowloaded your windows pack, filled up the .env file, renamend as you tell (.env), also did the cookie "chatgpt.json" file..but same problem here.

image

Thank you so much in advanced!
And if i can help with something just tell me.

@MrPeterJin
Copy link

Same here

@presslxqii
Copy link

same

1 similar comment
@IAliceBobI
Copy link

same

@wang182
Copy link

wang182 commented Feb 19, 2023

same,any solution?

@farhadhamed
Copy link

Same issue

@yangyongyongyong
Copy link

一模一样的问题.

@Leask
Copy link

Leask commented Mar 22, 2023

You guys can also try this project: https://github.com/Leask/halbot

GitHub
Just another ChatGPT/Bing Chat Telegram bob, which is simple design, easy to use, extendable and fun. - GitHub - Leask/halbot: Just another ChatGPT/Bing Chat Telegram bob, which is simple design, e...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests