-
Notifications
You must be signed in to change notification settings - Fork 66
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
"Error retrieving template 'Template is not available for api version == 2022-06-30-preview'. Please try again later." when running validate-messages #719
Comments
@scout208 would you please share your application id, so I can take a look? |
@yang-hai-feng, sure. The application id is |
@scout208 do you have a device template associated with your device? from the error information, it seems your don't have template associated with the device. |
@yang-hai-feng Yes, I do have a device template associated with my device. I'm not sure why I'm getting this error. Running the command with the |
Thanks @scout208 for the details, looks like a bug from CLI extension code, I will investigate and get back to you. |
@yang-hai-feng I've narrowed the problem down to this block of code azure-iot-cli-extension/azext_iot/central/models/v2022_06_30_preview/template.py Lines 94 to 103 in a42f57a
In my template there are no components, which means that I fixed it on my machine by changing the block to this
and it was able to get my device template successfully. |
@scout208 , thanks for your investigation, that was fantastic, we will include the fixes for next releases, appreciated for your help to identify this issue. |
When running the validate-messages command, I'm getting the error "Error retrieving template 'Template is not available for api version == 2022-06-30-preview'. Please try again later.".
The text was updated successfully, but these errors were encountered: