ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

invalid_request_error

Open TinkuMajhi opened this issue 2 months ago • 18 comments

invalid_request_error

MSG : Error getting a new session, please try again later, if the issue persists, please open an issue on the GitHub repository, https://github.com/PawanOsman/ChatGPT

TinkuMajhi avatar Apr 22 '24 05:04 TinkuMajhi

I have the exact same issue. -2147483648_-215120

SleepInfinity avatar Apr 22 '24 08:04 SleepInfinity

Please make sure to use a U.S. VPN, you can't host it on cloud because your IP will be blocked by OpenAI,

you have to use a U.S. VPN or residential proxy

PawanOsman avatar Apr 22 '24 11:04 PawanOsman

Please make sure to use a U.S. VPN, you can't host it on cloud because your IP will be blocked by OpenAI,

you have to use a U.S. VPN or residential proxy

I tried using US rotating proxy but the same error persist.

SleepInfinity avatar Apr 22 '24 11:04 SleepInfinity

@SleepInfinity as i said it should be a residential proxy, only residential proxies will work

PawanOsman avatar Apr 22 '24 11:04 PawanOsman

@SleepInfinity as i said it should be a residential proxy, only residential proxies will work

It is a residential proxy from proxyscrape.com

SleepInfinity avatar Apr 22 '24 11:04 SleepInfinity

Is there any way to make sure that the api is using that proxy?

SleepInfinity avatar Apr 22 '24 11:04 SleepInfinity

@SleepInfinity check this https://proxyscrape.com/products/residential-proxies/united-states

PawanOsman avatar Apr 22 '24 12:04 PawanOsman

@SleepInfinity check this https://proxyscrape.com/products/residential-proxies/united-states

IMG_20240422_145029_023 Here is the account and its residential but I'm using the proxy on all the linux machine I added the proxy inside the /etc/environment file I don't know if this works but can you give me the syntax of the .env file to use the proxy. Thankyou

SleepInfinity avatar Apr 22 '24 12:04 SleepInfinity

@SleepInfinity please check the .env.example file

PawanOsman avatar Apr 22 '24 13:04 PawanOsman

@SleepInfinity please check the .env.example file

I tried the .env file but got the same error with a us proxy. Should I use double Quotes for the username and password of the proxy inside the .env file?

SleepInfinity avatar Apr 22 '24 13:04 SleepInfinity

@SleepInfinity, make sure to set both PROXY and PROXY_AUTH to true. Also, ensure that you set the PROXY_HOST and PROXY_PORT correctly. Additionally, make sure to specify the correct proxy protocol.

You can also try to write the username and password between double quotes

PawanOsman avatar Apr 22 '24 14:04 PawanOsman

@SleepInfinity, make sure to set both PROXY and PROXY_AUTH to true. Also, ensure that you set the PROXY_HOST and PROXY_PORT correctly. Additionally, make sure to specify the correct proxy protocol.

You can also try to write the username and password between double quotes

IMG_20240422_161554_656 I tried both with and without double quotes but still same error and also Im sure that the protocol is http as mentioned in the proxyscrape dashboard and also I tried the proxy with a simple python code and it works fine.

SleepInfinity avatar Apr 22 '24 14:04 SleepInfinity

Im just getting empty responses now. Was working flawlessly until yesterday

notV3NOM avatar Apr 22 '24 14:04 notV3NOM

Im just getting empty responses now. Was working flawlessly until yesterday

What you did to make it work?

SleepInfinity avatar Apr 22 '24 15:04 SleepInfinity

What you did to make it work?

I did not have the issue you are facing

notV3NOM avatar Apr 23 '24 04:04 notV3NOM

@SleepInfinity, make sure to set both PROXY and PROXY_AUTH to true. Also, ensure that you set the PROXY_HOST and PROXY_PORT correctly. Additionally, make sure to specify the correct proxy protocol. You can also try to write the username and password between double quotes

IMG_20240422_161554_656 I tried both with and without double quotes but still same error and also Im sure that the protocol is http as mentioned in the proxyscrape dashboard and also I tried the proxy with a simple python code and it works fine.

My problem is now solved the app wasn't detecting and using the proxy inside the .env file but now with python everything is working properly and I think ill make the same app in python and share it is it possible?

SleepInfinity avatar Apr 23 '24 07:04 SleepInfinity

@SleepInfinity, you must have done something incorrectly because the .env file is working fine, and the proxies are functioning properly with it.

Perhaps you have more knowledge about Python, that's why you couldn't set up this Node.js project.

PawanOsman avatar Apr 23 '24 13:04 PawanOsman

@SleepInfinity, you must have done something incorrectly because the .env file is working fine, and the proxies are functioning properly with it.

Perhaps you have more knowledge about Python, that's why you couldn't set up this Node.js project.

Yes, anyways thankyou for your help 😄

SleepInfinity avatar Apr 23 '24 15:04 SleepInfinity