You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When getting notification outcome details a MessagingEntityNotFoundException is thrown for some notifications even after waiting 30 or more minutes after the notification was enqueued.
Exception or Stack Trace
Microsoft.Azure.NotificationHubs.Messaging.MessagingEntityNotFoundException
at Microsoft.Azure.NotificationHubs.NotificationHubClient.<SendRequestAsync>d__201.MoveNext()
at Microsoft.Azure.NotificationHubs.NotificationHubClient.<SendRequestAsync>d__200.MoveNext()
at Microsoft.Azure.NotificationHubs.NotificationHubClient.<>c__DisplayClass80_0.<<GetNotificationOutcomeDetailsAsync>b__0>d.MoveNext()
at Microsoft.Azure.NotificationHubs.NotificationHubRetryPolicy.<RunOperation>d__4`1.MoveNext()
at Microsoft.Azure.NotificationHubs.NotificationHubRetryPolicy.<RunOperation>d__4`1.MoveNext()
at Microsoft.Azure.NotificationHubs.NotificationHubClient.<GetNotificationOutcomeDetailsAsync>d__80.MoveNext()
at [Redacted].Queues.Triggers.LoyaltyNotificationOutcomeTrigger.<TryGetNotificationDetails>d__10.MoveNext()
in C:\Users\[Redacted]\source\repos\[Redacted]\[Redacted]\[Redacted].Queues\Triggers\LoyaltyNotificationOutcomeTrigger.cs:line 119
To Reproduce
Use Microsoft.Azure.NotificationHubs nuget package version 4.1.0.
Code Snippet
Add the code snippet that causes the issue.
publicasyncTaskGetOutcomeDetails(){varcredentials=newHubCredentials(connectionString:[RedactedFullSharedNotificationHubConnectionString],hubName:"[RedactedHubName]"
var hub = NotificationHubClient.CreateClientFromConnectionString(credentials.ConnectionString,credentials.HubName);varresult=awaithub.GetNotificationOutcomeDetailsAsync(notificationId);}
Expected behavior
Expected to get outcome details.
Screenshots
Setup (please complete the following information):
OS: Windows 10
IDE : Microsoft Visual Studio Enterprise 2022 (64-bit) - Version 17.7.4
'Microsoft.Azure.NotificationHubs' NuGet package - Version 4.1.0
Additional context
Add any other context about the problem here.
In our production code we use a ASPNET Api endpoint to send notifications. Once sent we use the notification id from the outcome to enqueue a message for polling the notificationId outcome details in a QueueTrigger. Currently we have quite a few messages that end up in our poison queue due to this issue.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
Bug Description Added
Repro Steps Added
Setup information Added
The text was updated successfully, but these errors were encountered:
Describe the bug
When getting notification outcome details a
MessagingEntityNotFoundException
is thrown for some notifications even after waiting 30 or more minutes after the notification was enqueued.Exception or Stack Trace
To Reproduce
Microsoft.Azure.NotificationHubs.NotificationHubClient.SendFcmNativeNotificationAsync(string jsonPayload, IEnumerable<string> tags)
orMicrosoft.Azure.NotificationHubs.NotificationHubClient.SendNotificationAsync(Notification notification, IEnumerable<string> tags)
NotificationOutcome.NotificationId
Microsoft.Azure.NotificationHubs.NotificationHubClient.GetNotificationOutcomeDetailsAsync(string notificationId)
Code Snippet
Add the code snippet that causes the issue.
Expected behavior
Expected to get outcome details.
Screenshots
Setup (please complete the following information):
Additional context
Add any other context about the problem here.
In our production code we use a ASPNET Api endpoint to send notifications. Once sent we use the notification id from the outcome to enqueue a message for polling the notificationId outcome details in a QueueTrigger. Currently we have quite a few messages that end up in our poison queue due to this issue.
Context
TrackingId: 50f576d9-74bf-48f0-9ed9-9d19eb695aa7
TimeStamp: 10/11/2023 1:36:41 PM +00:00
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: