ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

error while getting data

Open sudityashrivastav opened this issue 2 months ago • 13 comments

{ "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

sudityashrivastav avatar Apr 23 '24 18:04 sudityashrivastav

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

SleepInfinity avatar Apr 23 '24 21:04 SleepInfinity

@sudityashrivastav Your request should not contain anything against OpenAI policy

PawanOsman avatar Apr 25 '24 06:04 PawanOsman

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"}

somenzz avatar Apr 25 '24 06:04 somenzz

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

lyh0825 avatar Apr 25 '24 07:04 lyh0825

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.

SleepInfinity avatar Apr 25 '24 07:04 SleepInfinity

@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.

PawanOsman avatar Apr 25 '24 07:04 PawanOsman

@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😢...

Ezi1h avatar Apr 25 '24 08:04 Ezi1h

@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

SleepInfinity avatar Apr 25 '24 08:04 SleepInfinity

@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...😂

Ezi1h avatar Apr 25 '24 09:04 Ezi1h

@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.

m00nfly avatar Apr 25 '24 09:04 m00nfly

@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... 😭

Ezi1h avatar Apr 25 '24 09:04 Ezi1h

@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

SleepInfinity avatar Apr 25 '24 09:04 SleepInfinity