-
Notifications
You must be signed in to change notification settings - Fork 58
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
Subscribe to C2D events throws error while receiving the events on device side #80
Comments
Something must be wrong with the connection url |
Connection has been established. It also gets triggered upon events arrival. But with the below error ERROR message parse error: invalid semicolon separator in query Below is the sample connection URL I used:
|
Hi, @amenzhinsky is there any update? |
@amenzhinsky Do you have any concerns on above connection string format? If so then how come the client could get authorized with above connection string format. But could not parse the data and throws parse error. Is this SDK able to receive data in your case? |
@PremSahooESL it seems parseCloudToDeviceTopic fails to parse the topic name of the incoming message, could you log it in your app to investigate what causes the problem? |
Thanks for the response. Sure let me check.. |
Below is the Topic Name What I received from: This could not be parsed by parseQuery() function on url.go
|
Is it something different or unexpected which comes from C2D by IotHub? |
That's odd, there's a preparation of this type of queries for the following parsing. https://github.com/amenzhinsky/iothub/blob/master/iotdevice/transport/mqtt/mqtt.go#L280 Could you make sure that |
Below code throws the error:
|
I could see below line is missing from above code: https://github.com/amenzhinsky/iothub/blob/master/iotdevice/transport/mqtt/mqtt.go#L280 |
Could you update to the latest version? |
it works now. Thanks. |
I will keep posting here if I face other issues. Infact this is the only Github repo for Go Lang SDK for Azure IoT Hub. Hope it supports all basic C2D functions. |
Go Version: go 1.19
ERROR message parse error: invalid semicolon separator in query
The text was updated successfully, but these errors were encountered: