Skip to content

Error in AzureIoTHubClientProperties_GetNextComponentProperty #389

@LucasIssardWatts

Description

@LucasIssardWatts

This issue is for a:

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Random problem, I couldn't explain its appearance...

Any log messages given by the failure

AZ IOT: Could not get next component property: core error=0x00000003

Expected/desired behavior

When processing my received properties JSON, I'm calling AzureIoTHubClientProperties_GetNextComponentProperty() while it returns eAzureIoTSuccess (I'm waiting for eAzureIoTErrorEndOfProperties code to stop).
But sometimes (I can't explain why), instead of returning eAzureIoTSuccess or eAzureIoTErrorEndOfProperties, it returns eAzureIoTErrorJSONReaderDone. This error code means "No more JSON text left to process.". Why does the function didn't return eAzureIoTErrorEndOfProperties ?
This is due to az_iot_hub_client_properties_get_next_component_property() which return AZ_ERROR_NOT_IMPLEMENTED instead of AZ_ERROR_IOT_END_OF_PROPERTIES.

OS and Version?

Windows 11
ESP-IDF v4.4 (ESP32)

Versions

azure-iot-middleware-freertos : aadfcd7e6511164370b2d03481bfcb76bb3d7399

Mention any other details that might be useful

Thank you in advance,
Waiting for you help 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions