# MQTT consumer input: network error crashes Telegraf

**URL:** <https://community.influxdata.com/t/mqtt-consumer-input-network-error-crashes-telegraf/23938>\
**Category:** Telegraf\
**Tags:** mqtt\
**Created:** [February 21, 2022, 12:06am UTC](https://community.influxdata.com/t/mqtt-consumer-input-network-error-crashes-telegraf/23938 "2022-02-21T00:06:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gsmackers](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gsmackers](https://community.influxdata.com/u/gsmackers)\
**Post date:** [February 21, 2022, 6:28pm UTC](https://community.influxdata.com/t/mqtt-consumer-input-network-error-crashes-telegraf/23938/2 "2022-02-21T18:28:10Z")

</div>

I’m still not sure why it was crashing or how to troubleshoot (which is concerning), but I got it working with help from this post: [MQTT from AWS IoT - Telegraf - InfluxData Community Forums](https://community.influxdata.com/t/mqtt-from-aws-iot/3964). I set the server url to ssl://… and it connected.

Does anyone know how to stop the service from crashing when it can’t connect?

---

_[View the full topic](https://community.influxdata.com/t/mqtt-consumer-input-network-error-crashes-telegraf/23938)._
