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

Unable to run message_receiver_sample #409

Closed
alseambusher opened this issue Oct 4, 2021 · 2 comments
Closed

Unable to run message_receiver_sample #409

alseambusher opened this issue Oct 4, 2021 · 2 comments

Comments

@alseambusher
Copy link

Hi folks!

Thanks for creating this library. I am new to azure and new to this library. We want to use azure service bus for one of our applications and was trying the samples provided here.

I was able to successfully send messages to the service bus using the message_sender_sample but was unable to receive the same back while using the message_receiver_sample. I get the following error:

azure-uamqp-c/src/link.c Func:link_frame_received Line:333 Cannot get initial delivery count

I tracked it down to this method: attach_get_initial_delivery_count https://github.com/Azure/azure-uamqp-c/blob/master/src/amqp_definitions.c#L4830 and it looks like amqpvalue_get_type(item_value) == AMQP_TYPE_NULL

Can you please help me here?

Thanks!

@alseambusher
Copy link
Author

Hi folks, any idea how to go about this? Perhaps @ewertons ?

@alseambusher
Copy link
Author

Nevermind, changing the line from:

source = messaging_create_source("amqps://" EH_HOST "/" EH_NAME "/ConsumerGroups/$Default/Partitions/0");

to

source = messaging_create_source("amqps://" EH_HOST "/" EH_NAME);

made it work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant