# Issue with https connection to influx

**URL:** https://community.influxdata.com/t/issue-with-https-connection-to-influx/8986
**Category:** InfluxDB 2
**Created:** [March 12, 2019, 8:54pm UTC](https://community.influxdata.com/t/issue-with-https-connection-to-influx/8986 "2019-03-12T20:54:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![setheridge1](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@setheridge1](https://community.influxdata.com/u/setheridge1)
#### Post date: [March 12, 2019, 8:54pm UTC](https://community.influxdata.com/t/issue-with-https-connection-to-influx/8986/1 "2019-03-12T20:54:55Z")

</div>

I have influxdb running in the influxdb official docker image. I have another container running Ubuntu just as a client. The Ubuntu container can happily ping the influxdb container. However if I try a curl command such as in the Get Started content I just get an empty response. I have installed the python influxdb client onto the Ubuntu box. I can instantiate a “client” but no matter what I try as “host=” in the connection string (ip address, host name per the docker network) any command I send via the client results in a 504 gateway error. I can create databases and query etc. from the client on the influxdb container.  
Does anyone have any idea what stupid mistake I am making?  
thanks,  
Stephen

---

<div class="post-metadata">

### Author: ![setheridge](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@setheridge](https://community.influxdata.com/u/setheridge)
#### Post date: [March 13, 2019, 12:17pm UTC](https://community.influxdata.com/t/issue-with-https-connection-to-influx/8986/2 "2019-03-13T12:17:41Z")

</div>

Further information. I am trying to mimic the getting started tutorial. I am running inside just one container now. I have entered

> Blockquote  
> curl -i -XPOST [http://localhost:8086/query](http://localhost:8086/query) --data-urlencode “q=CREATE DATABASE mydb”

and received

> Blockquote  
> curl: (52) Empty reply from server

The database was not created but I can create another database from the influx cli.

---

<div class="post-metadata">

### Author: ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)
#### Post date: [March 13, 2019, 2:36pm UTC](https://community.influxdata.com/t/issue-with-https-connection-to-influx/8986/3 "2019-03-13T14:36:17Z")

</div>

should the URL be https instead of http?

The response can happen when a http request is sent to https.

---

<div class="post-metadata">

### Author: ![setheridge](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@setheridge](https://community.influxdata.com/u/setheridge)
#### Post date: [March 13, 2019, 3:11pm UTC](https://community.influxdata.com/t/issue-with-https-connection-to-influx/8986/4 "2019-03-13T15:11:12Z")

</div>

Thanks for the suggestion Phil. I have managed to sort it out though. The issue was that both containers had “http\_proxy” set and that was refusing connections etc. and stopping communications. UNSET cleared that and it worked as advertised!

---

<div class="post-metadata">

### Author: ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)
#### Post date: [March 13, 2019, 3:21pm UTC](https://community.influxdata.com/t/issue-with-https-connection-to-influx/8986/5 "2019-03-13T15:21:08Z")

</div>

Ah good, glad you sorted it. My docker knowledge is pretty much none existant so other than the URL i wouldn’t know where to begin with touble shooting docker containers.
