# Bad Gateway (502) error creating DataSource InfluxDB

**URL:** <https://community.grafana.com/t/bad-gateway-502-error-creating-datasource-influxdb/15825>\
**Category:** Grafana\
**Created:** [March 28, 2019, 11:57am UTC](https://community.grafana.com/t/bad-gateway-502-error-creating-datasource-influxdb/15825 "2019-03-28T11:57:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ipach](https://avatars.discourse-cdn.com/v4/letter/i/da6949/32.png) [@ipach](https://community.grafana.com/u/ipach)\
**Post date:** [March 28, 2019, 11:57am UTC](https://community.grafana.com/t/bad-gateway-502-error-creating-datasource-influxdb/15825/1 "2019-03-28T11:57:23Z")

</div>

Hello to everyone!!

I’m trying to create a dashboard to read data adquired on a InfluxDB database on a Raspberry pi 3. In order to achieve my goal I want to use grafana cloud dashboards, this way I can access with any computer to the data stored on the raspberry.

The problem is the following: “Network Error: Bad Gateway(502)”. This error appears when I configure the Database on the grafana cloud session.

I tried to work locally and both the database and grafana, which are installed in the raspberry, and the dashboard works. I can visualize the data. The configuration is for the localhost.

Any suggestions?

Thank you in advance.  
Best regards, Iñigo.

 ![imagen](https://us1.discourse-cdn.com/grafana/original/2X/7/71f159503ca578b26443e9d098c2618d07d8ed26.png)

---

<div class="post-metadata">

**Author:** ![amalokch](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amalokch](https://community.grafana.com/u/amalokch)\
**Post date:** [August 9, 2020, 4:15pm UTC](https://community.grafana.com/t/bad-gateway-502-error-creating-datasource-influxdb/15825/2 "2020-08-09T16:15:30Z")

</div>

Hello, I’ve the same doubt and setup as you. Did you find a solution?
