Persistent 'Undefined' API Version Error When Sending Device Command via Azure IoT Central"
Opened this issue · 3 comments
We are trying to send a command to an IoT device using Azure IoT Central, specifically the DisplayText command on the device with ID ---------. Despite following the API documentation and making various attempts, we consistently receive an error indicating that "undefined" is not a valid API version.
Steps Taken:
Obtained Access Token: Successfully obtained a valid access token using OAuth 2.0.
Set Up Postman Request: Created a POST request in Postman to send the DisplayText command.
Correct URL: Used the URL format as per the Azure documentation.
API Version Tried: Attempted to use multiple API versions, including 1.1-preview and 2022-07-31.
Headers and Body: Ensured the headers (Authorization and Content-Type) and the JSON payload in the request body were correctly set.
Persistent Error: Despite these steps, we consistently receive the error:
"error": {
"code": "NotFound",
"message": ""undefined" is not a valid API version."
}
Specific Error Message:
json
{
"error": {
"code": "NotFound",
"message": ""undefined" is not a valid API version. You can contact support at https://aka.ms/iotcentral-support. Please include the following information. Request ID: , Time: "
}
}
Request for Assistance: We seek guidance on the correct API version or any additional configuration required to successfully send the command to the IoT device. Any insights or support from Azure SDK for Go community would be greatly appreciated.
@mehrdad2334, as you are invoking API directly for your ask, to better understand your ask, do you plan to use Azure GO SDK package for your scenario and ask us for the correct API version?
Could you share the link of the API documentation?
Hi @mehrdad2334. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
Hi @mehrdad2334, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!