Does not connect to pinecone api

I developed a chatbot with pinecone and when I run it locally it works but when I deploy it on a WSGI server on the web, it gives me thet error:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: /databases (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7f7143552b00>: Failed to establish a new connection: [Errno 111] Connection refused’))

I deploy my app on pythonanywhere

Seems like a plumbing problem between your host and the 3rd party pinecone API.

I’m guessing if you tried to ping the Pinecone host from your server env that it won’t work.

I’m not familiar with pythonanywhere, but you could try including something like this in your app to help you debug.

$ pip install ping3
$ python
>>> from ping3 import verbose_ping
>>> verbose_ping('')
ping '' ... 23ms
ping '' ... 18ms
ping '' ... 18ms
ping '' ... 19ms

Have you asked about the error on the pythonanywhere help forums? Maybe there is a proxy configuration you need to set to allow outbound connections?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.