443 Error for both text-davinc-003 and gpt-3.5-turbo

The error below appears when request to openai api for gpt-3.5-turbo:

APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host=‘api.openai.com’, port=443): Max
retries exceeded with url: /v1/chat/completions (Caused by ProxyError(‘Cannot connect to proxy.’, OSError(‘Tunnel
connection failed: 504 Gateway Timeout’)))

So does the api of text-davinc-003

Post “https://api.openai.com/v1/completions”: dial tcp i/o timeout

Am I blocked to access the API?

1 Like

I have the same problem. I used another account and changed my APIKEY, but it still doesnt work.
Is it a regional problem?

Confirmed that OpenAI APIs is blocked in some region for some reason

It is probably blocked - but just in case, check you are using TLS1.2

It will be a setting in your code (depending on the programming language)