-
Notifications
You must be signed in to change notification settings - Fork 7
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
Failed to get answer caused by: Invalid header value: "application/json" #1
Comments
please run curl to check what's wrong with the api server
or update the Docker image and check the Docker log, as version 0.2.0 supports logging. |
does chat.openai.com works on your pc? @bs10x |
Yes, it does. |
Under normal circumstances, the chat-requirements endpoint responds as follows
But runs in your docker container, it returns
Can you check this request in the browser, export curl, and send it to me? @bs10x |
returns:
returns: going to https://chat.openai.com/backend-anon/sentinel/chat-requirements in my browser returns:
|
This comment was marked as outdated.
This comment was marked as outdated.
Your authorization has been compromised. We use login-free chatgpt for our api, so do not login, also don't use any proxy. Run the following curl code in terminal, what's the result? @bs10x curl 'https://chat.openai.com/backend-anon/sentinel/chat-requirements' \
-H 'accept: */*' \
-H 'accept-language: en' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'oai-device-id: 31d07b2e-40ae-4af8-9501-573ed853e39b' \
-H 'oai-language: en-US' \
-H 'origin: https://chat.openai.com' \
-H 'pragma: no-cache' \
-H 'referer: https://chat.openai.com/' \
-H 'sec-ch-ua: "Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Windows"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
--data-raw '{}' |
i'm not able to use the chatgpt website without logging but found this:
as it seems they are only rolling out login-free chatgpt gradually, it may not yet be available in my region. where are you situated @xsigoking? i'm in switzerland. |
In this case, you can only use a proxy, or wait until openai supports your region. |
I tried:
docker run -d --name chatgpt-free-api xsigoking/chatgpt-free-api
Everything led to the same error:
System Software Overview:
Hardware Overview:
The text was updated successfully, but these errors were encountered: