Hi everyone,
I am trying to register a device using the HTTP API and it works well for the end device registry, join server registry, and application server registry. However, when the PUT request is done to the network server registry, it fails with a 400 error. stating that the “frequency_plan_id” field is missing. However, the POST data has the frequency_plan_id field.
(Note: I am following the order stated, I tested for the application server by skipping the network server once.)
The complete PUT data is as follows;
{
"end_device": {
"multicast": false,
"supports_join": true,
"lorawan_version": "1.0.3",
"ids": {
"device_id": "elsys-co2-043abc",
"dev_eui": "A81758FFFE044BAB",
"join_eui": "000ABDE000001232"
},
"mac_settings": {
"supports_32_bit_f_cnt": true
},
"supports_class_c": false,
"supports_class_b": false,
"lorawan_phy_version": "1.0.3-a",
"frequency_plan_id": "EU_863_870_TTN"
}
}
The failure message I get is as follows;
{
"code": 3,
"message": "error:pkg/networkserver:field_mask (invalid field mask)",
"details": [
{
"@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
"namespace": "pkg/networkserver",
"name": "field_mask",
"message_format": "invalid field mask",
"correlation_id": "24c0694175004aa58e116f97ff943b4a",
"cause": {
"namespace": "pkg/ttnpb",
"name": "missing_field",
"message_format": "field `{field}` is missing",
"attributes": {
"field": "frequency_plan_id"
},
"code": 2
},
"code": 3
}
]
}
Any help regarding this would be appreciated.