gRPC error while running influxdb in docker container on Digital ocean

I am running influxdb in a container with Caddy (as a reverse proxy) available at influx.quantaflare.com

I am using c# library to write the data (Datapoint class) - works well !

while reading the data, I create a client and SQL - just simple SQL with no parameters. I get error
(StatusCode=“Cancelled”, Detail=“Bad gRPC response. Invalid content-type value: text/html; charset=utf-8”)

here is my docker run if that helps

docker run -d --name influxdb -p 127.0.0.1:8086:8086 -v ~/influxdb-data:/var/lib/influxdb2 -e DOCKER_INFLUXDB_INIT_MODE=setup -e DOCKER_INFLUXDB_INIT_USERNAME=qfinfluxadmin -e DOCKER_INFLUXDB_INIT_PASSWORD=XXXX -e DOCKER_INFLUXDB_INIT_ORG=QForg -e DOCKER_INFLUXDB_INIT_BUCKET=QFBucket influxdb:latest

Hello @Amol_Wankhede,
Welcome!
Which client library are you using can you link it here?

Can you share your request?

Are you able to query within the container? Check if InfluxDB is running as expected. You can try connecting to it using the InfluxDB CLI to ensure it’s functional as well.