# Windows errors

| Error                    | Description                                                                                                                                                                                                                               |     What to do                                                                                                                                                                                                                                                                                                            |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **BadChannel**           | The push token (URI) is invalid or not recognized by WNS.                                                                                                                                                                                 | Check the push token and try again.                                                                                                                                                                                                                                                                            |
| **BadRequest**           | <p>The following reasons can cause the error:</p><ul><li>An invalid value was specified in the <em>wns_content</em> field (it is empty or contains incorrectly encoded XML).</li><li>An HTTP request to the WNS service failed.</li></ul> | Check the _wns\_content_ field value in the request.                                                                                                                                                                                                                                                           |
| **FailedToGetWNSToken**  | <p>The following reasons can cause the error:</p><ul><li>WNS is currently unavailable (this reason is more common).</li><li>WNS authentication failed due to invalid credentials.</li></ul>                                               | Сheck the credentials and try again later.                                                                                                                                                                                                                                                                     |
| **InvalidToken**         | The push token is invalid; the device will be unsubscribed from notifications.                                                                                                                                                            | Use the valid token.                                                                                                                                                                                                                                                                                           |
| **Overload**             | WNS push limit exceeded: WNS can't handle the high number of pushes sent.                                                                                                                                                                 | Try reducing the number of pushes you send.                                                                                                                                                                                                                                                                    |
| **PayloadTooLarge**      | The message size exceeds the 5000-byte limit.                                                                                                                                                                                             | Reduce the message size.                                                                                                                                                                                                                                                                                       |
| **TokenForWrongChannel** | The push token is invalid for the credentials used to send the push.                                                                                                                                                                      | <ul><li>Ensure that the package name in your app's manifest matches the credentials specified in the Pushwoosh Control Panel when configuring the platform.</li><li>Double-check whether the access token provided in the request matches the credentials of the app that requested the channel URI.</li></ul> |
| **Unregistered**         | The push token is invalid; the device will be unsubscribed from notifications.                                                                                                                                                            | Try using a new token.                                                                                                                                                                                                                                                                                         |
| **WNSFailed**            | An internal WNS failure caused notification delivery to fail.                                                                                                                                                                             | Try sending the message again later.                                                                                                                                                                                                                                                                           |
| **WNSUnavailable**       | Multiple attempts to send a message to the device within 10 minutes were unsuccessful, as the WNS server did not respond.                                                                                                                 | Try sending the message again later.                                                                                                                                                                                                                                                                           |