Azure / azure-notificationhubs-dotnet

.NET SDK for Azure Notification Hubs
MIT License
70 stars 122 forks source link

Notification Hubs iOS registration ETag exception #148

Open stankovski opened 4 years ago

stankovski commented 4 years ago

Copying over from https://github.com/Azure/azure-sdk-for-net/issues/5218:

Hi, I'm using Azure messaging to send messages over iOS.

Microsoft.Azure.NotificationHubs v3.0.0

When I register a new device, I'm seeing this error:

Microsoft.Azure.NotificationHubs.Messaging.MessagingException: The ETag header is either missing or invalid. It should be "*", or a quoted ETag..TrackingId:a86000ff-2cf5-48bc-a74a-61b69bbc7ace_G1,TimeStamp:2/8/2019 12:04:18 AM

I'm calling code that looks like this:

await this.hubClient.CreateAppleNativeRegistrationAsync(
   pushRegistration.DeviceToken, tags
);

And parameters are:

deviceToken = "c0311755b5cb62726fb38f01b1737ad8c92db995078d31667ebff350ade7ea4e"
tags = ["inst-71EFED04-6DED-474B-B50B-AF5A5A5837A6","8235f7a5-a840-4436-ac9c-f33c2cb9f31f","MVWGY2LFIBZW22LUNBRXSY3MNFXGOLTDN5WQ"]

cc: @jlkalberer

jlkalberer commented 4 years ago

FYI - I still see this randomly as an exception. My app has low traffic so it might happen once a week.

stankovski commented 4 years ago

I see. Can you file an issue via Azure Support?

jlkalberer commented 4 years ago

This isn't something Azure support can solve and I haven't had great experiences working with them in the past.. This is clearly a bug in some part of the Azure libraries.

This isn't a huge issue for me otherwise I would have forked the library and tried to fix it. We can just keep this open in case someone else runs into the issue.

thisisthekap commented 2 years ago

Happening for us as well. But not for registration creation, but for registration update.

shubhambothara commented 1 year ago

Happening for us as well.

thisisthekap commented 1 year ago

Can someone of the maintainers put some light into this?