Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unexpected end of JSON - CD Message #598

Closed
djaus2 opened this issue Jan 8, 2023 · 6 comments
Closed

[BUG] Unexpected end of JSON - CD Message #598

djaus2 opened this issue Jan 8, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@djaus2
Copy link

djaus2 commented Jan 8, 2023

Describe the bug
When sending CD message get "Unexpected end of JSON input"

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'The Explorer
  2. Configure for IoT Hub.
  3. Select the Device
  4. Click on "Cloud-to-device-message"'
  5. See error

Expected behavior
Get an OK message.
FYI an OK Method message:

Successfully invoked method 'stop' on device 'Pico2Dev2' with response {"status":200,"payload":{"request_id":2,"mothod":"stop","parameter":"\"\""}}

but with CD Message got:

Failed to send message to device Pico2Dev2: Error: invalid json response body at https://pico2hub.azure-devices.net/devices%2FPico2Dev2%2Fmessages%2FdeviceBound?api-version=2020-06-30-preview reason: Unexpected end of JSON input

NB: Message is received OK on the device, Also no such error displayed when sendt form VS Code.

Screenshots

Bug

Desktop (please complete the following information):

  • OS: Windows
  • OS Version 11
  • App version - Azure.IoT.Explorer.Preview.0.15.4
    Additional context
    Add any other context about the problem here.
@djaus2 djaus2 added bug Something isn't working needs review Review required by team member labels Jan 8, 2023
@djaus2
Copy link
Author

djaus2 commented Jan 8, 2023

Created a c# Console app as per https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-csharp-csharp-c2d#get-the-iot-hub-connection-string. It works OK with no errors. Have added some ack code to device upon reception of a CD Message and when Console app is set to DeliveryAcknowledgement.Full or PostiveOnly console app comes back with Success!

@GKMesh
Copy link

GKMesh commented Jan 8, 2023

I am also having this issue

@YingXue YingXue mentioned this issue Jan 18, 2023
4 tasks
@EgonRasmussen
Copy link

I have the exact same problem! It works in VSCode, but not in Azure IoT Explorer. Please fix it. It's a wonderful tool - except the bug.

@YingXue
Copy link
Member

YingXue commented Jan 24, 2023

Sorry for the delay of the release. The fix is now out: https://github.com/Azure/azure-iot-explorer/releases/tag/v0.15.5

@YingXue YingXue closed this as completed Jan 24, 2023
@YingXue YingXue removed the needs review Review required by team member label Jan 24, 2023
@djaus2
Copy link
Author

djaus2 commented Jan 24, 2023 via email

@djaus2
Copy link
Author

djaus2 commented Jan 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants