Tried to upgrade my device from v2 to v3 using the following generated device.json:
{
"ids": {
"device_id": "appid001003",
"application_ids": {
"application_id": "appid001001"
},
"dev_eui": "A840410001818B3C",
"join_eui": "9EF1E12F9A7877D9"
},
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"name": "appid001003",
"lorawan_version": "1.0.2",
"lorawan_phy_version": "1.0.2-b",
"frequency_plan_id": "EU_863_870_TTN",
"mac_settings": {
"rx1_delay": {
"value": 1
},
"supports_32_bit_f_cnt": true,
"resets_f_cnt": true,
"status_time_periodicity": "0s",
"status_count_periodicity": 0
}
}
but get the following error:
{
"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": "e8c3ec4e0ebd44e5a3a89cc2e932c0be",
"cause": {
"namespace": "pkg/ttnpb",
"name": "missing_field",
"message_format": "field `{field}` is missing",
"attributes": {
"field": "session.dev_addr"
},
"code": 2
},
"code": 3
}
],
"request_details": {
"url": "/ns/applications/appid001001v3/devices/appid001003",
"method": "put",
"stack_component": "ns"
}
}
Any help regarding this would be appreciated.