-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Couldn't send message: Couldn't get access token: failed to decode response: invalid character '<' looking for beginning of value #16
Comments
Same issue. Following to see if it gets fixed. |
when I try to install chatgpt-telegram , I received the same error . |
it has to do with how ChatGPT fixed authentication. You have to authenticate through the API code. And If i read this code right, it's using a login and cookie to do the authenticating. |
Looking forward to some updates |
Can someone tell me how to fix it? |
Nah, till now I cant solve it :( |
Something with the authentication has changed I believe. Here is the relevant code: chatgpt-discord/src/chatgpt/chatgpt.go Lines 66 to 69 in 3da7c72
which calls chatgpt-discord/src/chatgpt/chatgpt.go Lines 120 to 123 in 3da7c72
When you make a request following this it seems to spit back some HTML, which explains the invalid If I copy the complete cookie set out of my browser then I can make this request work as expected, but it seems like the If I had to guess, the CSRF token is relevant somehow. It could also be that I did my authentication step on one machine (desktop) but then moved the token to a separate machine (server). Hope those details help someone 🙂 |
On further inspection in a fresh browser session, I think this is a duplicate of #2 |
Starting the bot, I get this message as an answer to my hello msg
"Couldn't send message: Couldn't get access token: failed to decode response: invalid character '<' looking for beginning of value"
I searched for those issues before sending. But no help :(
Hope somebody can give me some help.
The text was updated successfully, but these errors were encountered: