Support new Cloudflare authentication
nimscore opened this issue · 2 comments
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 >
Just a few hours ago, OpenAI integrated Cloudflare security into their system.