Inputs.http cookie failure

In our inputs.http file we are using cookie authentication to connect to a device. When the device is not reachable the agent fails and Telegraf stops. This is creating another problem because that means that it stops the entire telegraf service even though it is only one single config file that is a problem. Is there a way to just print out an error for a cookie failure instead of it crashing the agent?

Error when it stops:

[telegraf] Error running agent: could not initialize input inputs.http: Post “URL******”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Right now no, see: [inputs.http] crashes when using cookie_auth_url and the host is unreachable · Issue #12959 · influxdata/telegraf · GitHub

@srebhan has been working on some start on error changes that this might fall under.