Skip to content
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 while getting data #111

Open
sudityashrivastav opened this issue Apr 23, 2024 · 13 comments
Open

error while getting data #111

sudityashrivastav opened this issue Apr 23, 2024 · 13 comments
Labels
question Further information is requested

Comments

@sudityashrivastav
Copy link

{
"status": false,
"error": {
"message": "An error occurred. please try again. Additionally, ensure that your request complies with OpenAI's policy.",
"type": "invalid_request_error"
},
"support": "https://discord.pawan.krd"
}

this is the error I a getting

@SleepInfinity
Copy link

Can you show us how are you making the request to the api?

@PawanOsman PawanOsman added the question Further information is requested label Apr 25, 2024
@PawanOsman
Copy link
Owner

@sudityashrivastav Your request should not contain anything against OpenAI policy

@somenzz
Copy link

somenzz commented Apr 25, 2024

I'm running it on my LA server.

curl http://127.0.0.1:3040/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer any_string_you_like" -d '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"stream": false
}'
{"status":false,"error":{"message":"Error getting a new session, If this error persists, your country may not be supported yet. If your country was the issue, please consider using a U.S. VPN or a U.S. residential proxy.","type":"invalid_request_error"},"support":"https://discord.pawan.krd"}

@lyh0825
Copy link

lyh0825 commented Apr 25, 2024

I'm running it on my LA server.

curl http://127.0.0.1:3040/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer any_string_you_like" -d '{ "model": "gpt-3.5-turbo", "messages": [ { "role": "user", "content": "Hello!" } ], "stream": false }' {"status":false,"error":{"message":"Error getting a new session, If this error persists, your country may not be supported yet. If your country was the issue, please consider using a U.S. VPN or a U.S. residential proxy.","type":"invalid_request_error"},"support":"https://discord.pawan.krd"}

I had the same problem. Did you solve it

@SleepInfinity
Copy link

I'm running it on my LA server.

curl http://127.0.0.1:3040/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer any_string_you_like" -d '{ "model": "gpt-3.5-turbo", "messages": [ { "role": "user", "content": "Hello!" } ], "stream": false }' {"status":false,"error":{"message":"Error getting a new session, If this error persists, your country may not be supported yet. If your country was the issue, please consider using a U.S. VPN or a U.S. residential proxy.","type":"invalid_request_error"},"support":"https://discord.pawan.krd"}

Your country may be blocked from accessing chat gpt without login.
Try go to chatgpt.com on a new browser
If you can't access it it means your country is blocked.

@PawanOsman
Copy link
Owner

@somenzz The project is still working. The only issue, I believe, is that your IP might be blocked by OpenAI, or you need to use a good IP address.
Note that you have a very small chance of success using VPS, shared hosting, or shared IPs. You must use a residential IP to be able to access it.

@Ezi1h
Copy link

Ezi1h commented Apr 25, 2024

@PawanOsman Hi, I also deployed it to the vps in Los Angeles, but it was unstable, and I always encountered this error frequently. It must not be that the ip was banned, otherwise I would not receive a response. I directly connected the xray proxy on this vps in my local Windows. And it can be used normally without logging in to https://chat.openai.com/ in the browser, and the response speed is normal. I do not know how to solve this problem😢...

@SleepInfinity
Copy link

@PawanOsman Hi, I also deployed it to the vps in Los Angeles, but it was unstable, and I always encountered this error frequently. It must not be that the ip was banned, otherwise I would not receive a response. I directly connected the xray proxy on this vps in my local Windows. And it can be used normally without logging in to https://chat.openai.com/ in the browser, and the response speed is normal. I do not know how to solve this problem😢...

Its possible that they are banning your server's ip temporary

@Ezi1h
Copy link

Ezi1h commented Apr 25, 2024

@PawanOsman Hi, I also deployed it to the vps in Los Angeles, but it was unstable, and I always encountered this error frequently. It must not be that the ip was banned, otherwise I would not receive a response. I directly connected the xray proxy on this vps in my local Windows. And it can be used normally without logging in to https://chat.openai.com/ in the browser, and the response speed is normal. I do not know how to solve this problem😢...

Its possible that they are banning your server's ip temporary

The banned timing seemed very short, I sent it a few times, then I got an error, sent it again normally, In ten attempts, there may be two to three errors...😂

@m00nfly
Copy link
Contributor

m00nfly commented Apr 25, 2024

@PawanOsman Hi, I also deployed it to the vps in Los Angeles, but it was unstable, and I always encountered this error frequently. It must not be that the ip was banned, otherwise I would not receive a response. I directly connected the xray proxy on this vps in my local Windows. And it can be used normally without logging in to https://chat.openai.com/ in the browser, and the response speed is normal. I do not know how to solve this problem😢...

Using a VPS IP can easily trigger cloudflare's robot identification mechanism, so there is a high probability that your IP cannot pass the verification of real people and robots.

@Ezi1h
Copy link

Ezi1h commented Apr 25, 2024

@PawanOsman Hi, I also deployed it to the vps in Los Angeles, but it was unstable, and I always encountered this error frequently. It must not be that the ip was banned, otherwise I would not receive a response. I directly connected the xray proxy on this vps in my local Windows. And it can be used normally without logging in to https://chat.openai.com/ in the browser, and the response speed is normal. I do not know how to solve this problem😢...

Using a VPS IP can easily trigger cloudflare's robot identification mechanism, so there is a high probability that your IP cannot pass the verification of real people and robots.

But I have to use vps because openai is not allowed in my country... 😭

@SleepInfinity
Copy link

@PawanOsman Hi, I also deployed it to the vps in Los Angeles, but it was unstable, and I always encountered this error frequently. It must not be that the ip was banned, otherwise I would not receive a response. I directly connected the xray proxy on this vps in my local Windows. And it can be used normally without logging in to https://chat.openai.com/ in the browser, and the response speed is normal. I do not know how to solve this problem😢...

Using a VPS IP can easily trigger cloudflare's robot identification mechanism, so there is a high probability that your IP cannot pass the verification of real people and robots.

But I have to use vps because openai is not allowed in my country... 😭

Me too but the best solution is to use a rotating residential us proxy.
I'm using the proxy from proxyscrape.com

@Kamarguera
Copy link

Error getting a new session...
If this error persists, your country may not be supported yet.
If your country was the issue, please consider using a U.S. VPN or a U.S. residential proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

8 participants