aws / amazon-freertos

DEPRECATED - See README.md
https://aws.amazon.com/freertos/
MIT License
2.54k stars 1.1k forks source link

[BUG] OTA_CBOR_Encode_GetStreamRequestMessage returned error #3509

Closed phstc closed 2 years ago

phstc commented 2 years ago

Describe the bug

I followed all the steps on OTA demo for an esp32 board.

I was able to install the initial flash with no problem.

But when I try to update via OTA (AWS Console Steps), I'm getting:

295 10035 [OTA Agent Task] [ota_mqtt.c:1171] [ERROR] [OTA] Failed to CBOR encode stream request message: OTA_CBOR_Encode_GetStreamRequestMessage returned error.

296 10036 [OTA Agent Task] [ota.c:2886] [INFO] [OTA] Current State=[RequestingFileBlock], Event=[RequestTimer], New state=[WaitingForFileBlock]

297 10087 [MQTT Agent Task] [core_mqtt_serializer.c:2386] [DEBUG] [MQTT] No data was received from the transport.

298 10131 [iot_thread] [ota_demo_core_mqtt.c:1861] [INFO] [OTA]  Received: 0   Queued: 0   Processed: 0   Dropped: 0

299 10231 [iot_thread] [ota_demo_core_mqtt.c:1861] [INFO] [OTA]  Received: 0   Queued: 0   Processed: 0   Dropped: 0

Continuously until the run demo finishes it.

The Job in the IoT gets stuck in Queued.

System information

To update my board via OTA.

phstc commented 2 years ago

My bad. I was uploading the wrong file. Finder (macOS) hides .bin files this was misleading me with the file being uploaded.