webPushClient.SendNotification(subscriptionkey, JsonData, vapidDetails);
当我尝试将网络通知推送到浏览器时,我将在以下异常中获得此信息。
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()<---
但它创建问题的生产环境,48小时后开始推送通知,48小时开始工作后无法到达,最初48小时错误