# Does not connect to pinecone api

**URL:** <https://community.pinecone.io/t/does-not-connect-to-pinecone-api/3599>\
**Category:** Support\
**Created:** [November 3, 2023, 8:36pm UTC](https://community.pinecone.io/t/does-not-connect-to-pinecone-api/3599 "2023-11-03T20:36:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taniavelez.iot](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/taniavelez.iot/32/1615_2.png) [@taniavelez.iot](https://community.pinecone.io/u/taniavelez.iot)\
**Post date:** [November 3, 2023, 8:36pm UTC](https://community.pinecone.io/t/does-not-connect-to-pinecone-api/3599/1 "2023-11-03T20:36:21Z")

</div>

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=‘[controller.gcp-starter.pinecone.io](http://controller.gcp-starter.pinecone.io)’, 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

---

<div class="post-metadata">

**Author:** ![silas](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/silas/32/1337_2.png) [@silas](https://community.pinecone.io/u/silas)\
**Post date:** [November 3, 2023, 9:15pm UTC](https://community.pinecone.io/t/does-not-connect-to-pinecone-api/3599/2 "2023-11-03T21:15:08Z")

</div>

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.

```sh
$ pip install ping3
$
$ python
>>> from ping3 import verbose_ping
>>>
>>> verbose_ping('controller.gcp-starter.pinecone.io')
ping 'controller.gcp-starter.pinecone.io' ... 23ms
ping 'controller.gcp-starter.pinecone.io' ... 18ms
ping 'controller.gcp-starter.pinecone.io' ... 18ms
ping 'controller.gcp-starter.pinecone.io' ... 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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/pinecone/original/1X/d16664eba369eeee623700cf12feab5562b37eaf.jpeg) [@system](https://community.pinecone.io/u/system)\
**Post date:** [November 17, 2023, 9:15pm UTC](https://community.pinecone.io/t/does-not-connect-to-pinecone-api/3599/3 "2023-11-17T21:15:55Z")

</div>

Closed on November 17, 2023, 9:15pm UTC

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