Persistent 'Undefined' API Version Error When Sending Device Command via Azure IoT Central" #23817
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
IoT
needs-author-feedback
Workflow: More information is needed from author to address the issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
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.
The text was updated successfully, but these errors were encountered: