webPushClient.SendNotification(subscriptionkey, JsonData, vapidDetails);
When i am trying to push web notification to browser then i am getting this below exception.
System.AggregateException: One or more errors occurred.
---> WebPush.WebPushException: Received unexpected response code
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at WebPush.WebPushClient.<SendNotificationAsync>d__15.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at WebPush.WebPushClient.SendNotification(PushSubscription subscription, String payload, VapidDetails vapidDetails)
at ServerMonitor.Program.Main(String[] args)
---> (Inner Exception #0) WebPush.WebPushException: Received unexpected response code
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at WebPush.WebPushClient.<SendNotificationAsync>d__15.MoveNext()<---
but its creating issue production environment,after 48 hours it starts pushing the notification,unable to get where it went after 48 hours it starts working,wrong for the initial 48 hrs