Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch Import Issue #6410

Closed
1 of 4 tasks
sascha-hemi opened this issue Jul 31, 2023 · 1 comment
Closed
1 of 4 tasks

Batch Import Issue #6410

sascha-hemi opened this issue Jul 31, 2023 · 1 comment
Labels
needs/triage We still need to triage this

Comments

@sascha-hemi
Copy link

Summary

Hey,
I'm currently trying to import 25 devices via JSON and CSV, and I'm encountering the following error:

There was an error and the operation could not be completed
An unknown error occurred. Please try again later.

Converting end device templates…
{
"end_device": {
"ids": {
"device_id": "lstm230700016",
"dev_eui": "2CF7F12042000795",
"join_eui": "0000000000000000"
},
"name": "lstm230700016",
"version_ids": {
"band_id": "EU_863_870"
},
"supports_class_c": true,
"lorawan_version": "MAC_V1_0_2",
"lorawan_phy_version": "PHY_V1_0_2_REV_B",
"frequency_plan_id": "EU_863_870_TTN",
"supports_join": true,
"root_keys": {
"app_key": {
"key": "FF7A514D363D1EE2FFA0D95DF7E74152"
}
}
},
"field_mask": {
"paths": [
"ids.device_id",
"ids.dev_eui",
"ids.join_eui",
"name",
"frequency_plan_id",
"lorawan_version",
"lorawan_phy_version",
"root_keys.app_key.key",
"supports_join",
"version_ids.band_id",
"supports_class_c"
]
}
}
undefined
{}

Import process cancelled due to error.

Steps to Reproduce

Use my JSON or CSV

JSON:
{
"ids": {
"device_id": "lstm230700016",
"dev_eui": "2CF7F12042000795",
"join_eui": "0000000000000000"
},
"name": "lstm230700016",
"lorawan_version": "MAC_V1_0_2",
"lorawan_phy_version": "RP001_V1_0_2_REV_B",
"frequency_plan_id": "EU_863_870_TTN",
"supports_join": true,
"supports_class_c": true,
"root_keys": {
"app_key": {
"key": "FF7A514D363D1EE2FFA0D95DF7E74152"
}
}
}
{
"ids": {
"device_id": "lstm230700017",
"dev_eui": "2CF7F1204200098D",
"join_eui": "0000000000000000"
},
"name": "lstm230700017",
"lorawan_version": "MAC_V1_0_2",
"lorawan_phy_version": "RP001_V1_0_2_REV_B",
"frequency_plan_id": "EU_863_870_TTN",
"supports_join": true,
"supports_class_c": true,
"root_keys": {
"app_key": {
"key": "BZEVVH5Z9L9T8ZMDXJ3RDCFQTQLLF6BQ"
}
}
}

CSV:
id;dev_eui;join_eui;name;frequency_plan_id;lorawan_version;lorawan_phy_version;app_key;band_id;supports_class_c
lstm230700016;2CF7F12042000795;0000000000000000;lstm230700016;EU_863_870_TTN;MAC_V1_0_2;RP001_V1_0_2_REV_B;FF7A514D363D1EE2FFA0D95DF7E74152;EU_863_870;true
lstm230700017;2CF7F1204200098D;0000000000000000;lstm230700017;EU_863_870_TTN;MAC_V1_0_2;RP001_V1_0_2_REV_B;BZEVVH5Z9L9T8ZMDXJ3RDCFQTQLLF6BQ;EU_863_870;true

Current Result

Converting end device templates…
{
"end_device": {
"ids": {
"device_id": "lstm230700016",
"dev_eui": "2CF7F12042000795",
"join_eui": "0000000000000000"
},
"name": "lstm230700016",
"version_ids": {
"band_id": "EU_863_870"
},
"supports_class_c": true,
"lorawan_version": "MAC_V1_0_2",
"lorawan_phy_version": "PHY_V1_0_2_REV_B",
"frequency_plan_id": "EU_863_870_TTN",
"supports_join": true,
"root_keys": {
"app_key": {
"key": "FF7A514D363D1EE2FFA0D95DF7E74152"
}
}
},
"field_mask": {
"paths": [
"ids.device_id",
"ids.dev_eui",
"ids.join_eui",
"name",
"frequency_plan_id",
"lorawan_version",
"lorawan_phy_version",
"root_keys.app_key.key",
"supports_join",
"version_ids.band_id",
"supports_class_c"
]
}
}
undefined
{}

Import process cancelled due to error.

Expected Result

It should import correctly ¯_(ツ)_/¯

Relevant Logs

No response

URL

No response

Deployment

The Things Stack Community Edition

The Things Stack Version

No response

Client Name and Version

Web Browser: Chrome

Other Information

No response

Proposed Fix

No response

Contributing

  • I can help by doing more research.
  • I can help by implementing a fix after the proposal above is approved.
  • I can help by testing the fix before it's released.

Code of Conduct

@sascha-hemi sascha-hemi added the needs/triage We still need to triage this label Jul 31, 2023
@sascha-hemi
Copy link
Author

sascha-hemi commented Jul 31, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/triage We still need to triage this
Projects
None yet
Development

No branches or pull requests

1 participant