Azure / azure-iot-sdk-node

A Node.js SDK for connecting devices to Microsoft Azure IoT services
https://docs.microsoft.com/en-us/azure/iot-hub/
Other
261 stars 227 forks source link

[Technical Question] AMQP Transport: Could not get feedback receiver #857

Closed donniekerr closed 3 years ago

donniekerr commented 4 years ago

What does this feedback error mean? I google it and can't find anything. Thanks

AMQP Transport: Could not get feedback receiver

I'm using this exact code inside an Azure Function https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-node-node-c2d#send-a-cloud-to-device-message

AB#7764617

anthonyvercolano commented 4 years ago

@donniekerr What type of hub are you using? Basic s1 s2?

Is this happening all the time? Or were you only seeing this occasionally?

donniekerr commented 4 years ago

S1 Standard

On Jul 22, 2020, at 12:31 PM, Anthony V. Ercolano notifications@github.com wrote:  What type of hub are you using? Basic s1 s2?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

anthonyvercolano commented 4 years ago

Is this happening all the time? Or were you only seeing this occasionally?

The exact same code as the link?

What it means is that an attempt to setup a connection to the feedback endpoint didn't go so well. Perhaps the message could be a bit more helpful.

Well, there are some things that you might supply at this point like version of the azure-iothub client.

In addition, If you can manage to get logs in the azure function you might give that a try.

To enable debug logs set the environment variable DEBUG to "azure,rhea".

set DEBUG="azure,rhea"

anthonyvercolano commented 4 years ago

If you have support, they might be able to look at hub logs and give you an idea about what occurred. Typically they would need to know the hub name and the exact time the problem occurred. This is not the kind of information you should give over github.

donniekerr commented 4 years ago

Thanks @anthonyvercolano . Appreciate the help. Happens all the time. Yes, exact same code in the sample. Only difference is that the node is running in an Azure Function. I installed the latest version of azure-iothub as of yesterday.

I will provide more details. Initially I was just wondering what the error meant because the error doesn't even point me a direction to look. Can the feedback provide more verbose errors? Because all azure function is doing is returning the error from the sdk.

elhorton commented 3 years ago

We are closing this issue because it would have to be an investment in AMQP which is not prioritized. If others would like to see this improvement, please add a comment in support and file/upvote on our Azure Feedback Page. Thank you!

az-iot-builder-01 commented 3 years ago

@donniekerr, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey