-
-
Notifications
You must be signed in to change notification settings - Fork 563
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 #71
Comments
same here with the docker img |
同样的问题 |
same question |
1 similar comment
same question |
same error |
I think it is blocked by OpenAI. It doesn't want to be used too much. |
Same issue here. Something changed on the OpenAI side in the last day or so. |
@dhilman Any updates on this? Going to try and run it on a vm tomorrow but I am getting the same error on M1 |
The error is coming from line 148 of chatgpt.go - "failed to decode response: invalid character '<' looking for beginning of value" suggests that the response received from the OpenAI API when the bot attempts to retrieve an access token is not a valid JSON object, but instead contains an HTML page or other invalid content. This could be caused by a number of issues, such as a misconfigured server or endpoint, a network connectivity problem, or an issue with the bot's code or configuration. |
so how can we solve this problem? |
It's caused by the addition of cloudflare protection |
+1 |
Just a few hours ago, OpenAI integrated Cloudflare security into their system. |
Same issue. |
Maybe we should plug in here, then. :) |
It seems to be the problem of |
Aside from Cloudflare, ChatGPT no longer outputs long-form content, if you hit the limit, it will throw a network error, or the CLI Response not in correct format! peer closed connection without sending complete message body (incomplete chunked read) |
Yes, you are quite right. I also found this problem, when I use https://chat.openai.com/chat, "network error" also occurs. I am not familiar with the go language, is there a solution? |
|
get refreshAccessToken is 403 forbidden,because open ai does man-machine validation on the request,i thought we should find a way to around it |
Closing in favor of #69 to keep everything in one place |
I'm not very familiar with Go either but I have built bots in the past and gotten past Cloudflare with Puppeteer-extra I don't think this is a Cloudflare problem though rather the incomplete chunked read that @llegomark mentioned above |
Using the latest v0.2.4 version, the bot replies:
Error: Couldn't get access token: failed to decode response: invalid character '<' looking for beginning of value
Does anyone know what is the reason? Is it because OpenAI added cloudflare?
The text was updated successfully, but these errors were encountered: