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

Persistent 'Undefined' API Version Error When Sending Device Command via Azure IoT Central" #23817

Open
mehrdad2334 opened this issue Dec 3, 2024 · 2 comments
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

Comments

@mehrdad2334
Copy link

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.

@github-actions github-actions bot added 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-team-triage Workflow: This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 3, 2024
@lirenhe
Copy link
Member

lirenhe commented Dec 6, 2024

@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?

@lirenhe lirenhe added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Dec 10, 2024
@github-actions github-actions bot removed the needs-team-triage Workflow: This issue needs the team to triage. label Dec 10, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants