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

DeadLetterReason and DeadLetterErrorDescription not store when using ServiceBusMessageActions.DeadLetterMessageAsync #2840

Open
pgilhuijs opened this issue Nov 7, 2024 · 3 comments
Labels
extensions: service-bus Needs: Attention 👋 potential-bug Items opened using the bug report template, not yet triaged and confirmed as a bug

Comments

@pgilhuijs
Copy link

Description

In our Azure function app code (.net 8 isolated mode) , autocompletemessages = off and manual deadlettering is done.
I noticed that when using ServiceBusMessageActions.DeadLetterMessageAsync and providing the DeadLetterReason and DeadLetterDescription it will fail to store it intermittently.

I've included a repro solution in the attachment.

Steps to reproduce

DeadLetterRepro.zip

Make sure you have properly configured the connection strings in settings and program and set the queue name.
It is a repro solution with an azure function app.
It accepts requests using an http trigger and that will put messages on a queue.
A service bus trigger will react on it and then deadletter it.
After this a second trigger is retrieving the deadletter and logging it. If reason or description is empty, you'll see an error logged.
Just keep sending until it reports an error.

@pgilhuijs pgilhuijs added the potential-bug Items opened using the bug report template, not yet triaged and confirmed as a bug label Nov 7, 2024
@jviau
Copy link
Contributor

jviau commented Nov 13, 2024

@JoshLove-msft do you know why this is not being persisted?

@JoshLove-msft
Copy link
Member

@pgilhuijs can you include the error that you are hitting?

@pgilhuijs
Copy link
Author

@JoshLove-msft I'm not hitting an explict error or something. It's just that the deadletterdescription and reason aren't always set. Actually most of the time they are not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions: service-bus Needs: Attention 👋 potential-bug Items opened using the bug report template, not yet triaged and confirmed as a bug
Projects
None yet
Development

No branches or pull requests

3 participants