PawanOsman / ChatGPT

OpenAI API Free Reverse Proxy
https://discord.pawan.krd
GNU Affero General Public License v3.0
5.62k stars 991 forks source link

invalid_request_error #107

Closed TinkuMajhi closed 7 months ago

TinkuMajhi commented 7 months ago

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

SleepInfinity commented 7 months ago

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

PawanOsman commented 7 months ago

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

SleepInfinity commented 7 months ago

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.

PawanOsman commented 7 months ago

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

SleepInfinity commented 7 months ago

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

It is a residential proxy from proxyscrape.com

SleepInfinity commented 7 months ago

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

PawanOsman commented 7 months ago

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

SleepInfinity commented 7 months ago

@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

PawanOsman commented 7 months ago

@SleepInfinity please check the .env.example file

SleepInfinity commented 7 months ago

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

PawanOsman commented 7 months ago

@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

SleepInfinity commented 7 months ago

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

notV3NOM commented 7 months ago

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

SleepInfinity commented 7 months ago

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

What you did to make it work?

notV3NOM commented 7 months ago

What you did to make it work?

I did not have the issue you are facing

SleepInfinity commented 7 months ago

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

PawanOsman commented 7 months ago

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

SleepInfinity commented 7 months ago

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