m1guelpf/chatgpt-discord

Support new Cloudflare authentication

Open

#2 opened on Dec 12, 2022

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Go (58 forks)user submission
help wanted

Repository metrics

Stars
 (285 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi,

I tried your bot yesterday and it works really well, however after a few hours it started to respond with an error to all requests. The error is not fixed by replacing the discord bot authorization token and replacing the openai authorization token. It is also present when running the bot on home PC and on vps server ubuntu. There must be an error in some golang library, but why it did not appear in this case immediately. I unfortunately can not solve this problem, although apparently it is a problem in the authorization library discord-bot.

The full text of the error looks like this: Couldn't send message: Couldn't get access token: failed to decode response: invalid character '<' looking for beginning of value

Do you have any idea how to solve this? Thank you )

P.S. Perhaps < is the start of < nil >

Contributor guide