Error
Messages of type error
are intended to notify AS about critical errors during LoRaWAN message processing.
These messages are generated in case of NS was not able to complete LoRaWAN message processing for some reasons: bad MIC, CRC or other...
On the diagram below you can see an example of such kind of error: device is trying to perform OTAA using the dev_nonce
that was already used before.
The sequence in that example looks as following:
Device initiate OTAA and send
join_request
to the NSNS process
join_request
, createjoin_accept
and send it back to the device.Device is trying to perform OTAA again using the same
DEV_NONCE
, createsjoin_request
and send it to NS.NS identifies an error and send an error message to the AS
Params
Name | Description |
---|---|
message | string, required |
code | string, optional |
Example
{
"meta": {
"network": "a0842237",
"packet_hash": "451d26187b5dbc94e12d040ae094b5e2",
"application": "b3a1067cf7085309",
"time": 1504638860.752536,
"device": "8c30dd074be218cb",
"packet_id": "9b34f5f1bf8a38ccff7589e30312bf67",
"gateway": "f5791b767ff5cf7a"
},
"type": "error",
"params": {
"message": "Join request rejected. The same DEV_NONCE was processed before. Possible replay attack"
}
}
List of Error
Requesting downlink message failed due to network server error: <reason>.
Could not encrypt data from application. Application returned decrypted payload, but did not provide APP_SESSION_KEY for encryption.
Application returned payload with bad format. Expected base64 string
Join request rejected: device <dev_eui> attempts to send data to wrong AppEUI (<app_eui>)
Join request rejected. The same DEV_NONCE was processed before. Possible replay attack
Join request MIC check failed for DEV_EUI
Join failed: application request timeout. Please check application availability
Join failed due to network server error: <reasone>.
Data message MIC check failed. Seems counters are not syncronized. Core will try to recover counters
Device counters are not syncronized and it is not possible to recover them
Device uplink counter is less or equal than the last known uplink counter. Possible replay attack.
Sending 'status' message failed: application request timeout. Please check application availability.
Sending 'status' message failed due to network server error: <reason>.