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
Can you add the response content to the exception message?
It will help immensely when getting started.
In HandleResponse:
// you might want to have a try/catch, there are cases when reading// the content fails (although it should work in most cases)varstr=response.Content.ReadAsStringAsync().GetAwaiter().GetResult();thrownewWebPushException($"{message}. Details: {str}",response.StatusCode,response.Headers,subscription);
WebPush.WebPushException: 'Received unexpected response code: 403. Details: the key in the authorization header does not correspond to the sender ID used to subscribe this user. Please ensure you are using the correct sender ID and server Key from the Firebase console.
The text was updated successfully, but these errors were encountered:
Can you add the response content to the exception message?
It will help immensely when getting started.
In
HandleResponse
:Before
After
The text was updated successfully, but these errors were encountered: