Azure / iotc-migrator

A Companion Experience that enables you to move devices between Azure IoT Central applications or move devices from an Azure IoT Central application to an Azure IoT Hub
MIT License
4 stars 5 forks source link

"target should be string" error when trying to migrate #3

Closed pferrot closed 2 years ago

pferrot commented 2 years ago

Got the error below when trying to migrate a basic test device from one IoT Central application to another:

The provided request body contains the following errors: target should be string.
You can contact support at https://aka.ms/iotcentral-support.
Please include the following information. Request ID: 1ch5htst, Time: Mon, 25 Apr 2022 07:37:47 GMT.

image

pferrot commented 2 years ago

I tried to force a string in the code ('target': payload.template ? "true":"false",, but then I got the error below, so it must be something a bit more tricky.

A specified target was not found.
You can contact support at https://aka.ms/iotcentral-support.
Please include the following information. Request ID: 5il7en18, Time: Mon, 25 Apr 2022 07:43:58 GMT.
lucadruda commented 2 years ago

new version available with several bug fixes.