Unable to write to InfluxDB from Telegraf

Hello All,
I am unable toload data from Telegraf to InfluxDB
Getting the net/http: request canceled (Client.Timeout exceeded while awaiting headers)
error message repeatedly
not sure what this error means.
Can any one help me figure out what this error means and how to resolve this

2018-09-05T16:06:05Z E! Error writing to output [influxdb]: could not write any address
2018-09-05T16:06:15Z E! [outputs.influxdb]: when writing to [http://influxdb****:8086]: Post http://influxdb****:8086/write?consistency=any&db=telegraf&rp=autogen: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Badly placed ()'s.

What does your config file look like and can the host/container running telegraf communicate with influx database? I assume the influxdb**** is an alias that telegraf can resolve to the ip of influx?