You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I m trying to provision my device but when i m using connect_future.result(), I m getting error:
AWS_ERROR_MQTT_UNEXPECTED_HUNGUP:The connection was closed unexpectedly.
File "/home/pi/working/local/Provisioning-Script/provisioning_handler.py", line 100, in core_connect
connect_future.result()
File "/home/pi/working/local/Provisioning-Script/provisioning_handler.py", line 163, in orchestrate_provisioning_flow
self.core_connect()
File "/home/pi/working/local/Provisioning-Script/provisioning_handler.py", line 159, in get_official_certs
return asyncio.run(self.orchestrate_provisioning_flow(callback))
File "/home/pi/working/local/Provisioning-Script/aws_provisioning.py", line 49, in run_provisioning
provisioner.get_official_certs(callback)
File "/home/pi/working/local/Provisioning-Script/levaware.py", line 72, in _main
certificate_root = run_provisioning(isRotation=False, imei=serial_number)
File "/home/pi/working/local/Provisioning-Script/levaware.py", line 143, in
_main()
AWS_ERROR_MQTT_UNEXPECTED_HUNGUP can be caused by many things but it is most likely something wrong with a policy. If you don't have the correct policy attached to the device that you provisioned then it won't connect to IoT core and you will get this error. If you are still having problems please include more details about what you are trying to do and reproduction steps for the error that you are seeing.
AWS_ERROR_MQTT_UNEXPECTED_HUNGUP can be caused by many things but it is most likely something wrong with a policy. If you don't have the correct policy attached to the device that you provisioned then it won't connect to IoT core and you will get this error. If you are still having problems please include more details about what you are trying to do and reproduction steps for the error that you are seeing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
AWS_ERROR_MQTT_UNEXPECTED_HUNGUPcan be caused by many things but it is most likely something wrong with a policy. If you don't have the correct policy attached to the device that you provisioned then it won't connect to IoT core and you will get this error. If you are still having problems please include more details about what you are trying to do and reproduction steps for the error that you are seeing.