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

The version of the Provisioning API is not up to date #2575

Closed
cecilia-barnhill-cubic opened this issue Feb 9, 2024 · 2 comments
Closed
Assignees

Comments

@cecilia-barnhill-cubic
Copy link

in the current version of the sdk, the prov api version is 2019-03-31

static const char* const PROV_API_VERSION = "2019-03-31";

the latest version supported by the dps is 2021-06-01
https://learn.microsoft.com/en-us/rest/api/iot-dps/device/runtime-registration/register-device?view=rest-iot-dps-device-2021-06-01

This didn't seem to cause issues for certain types of certificates - the certs generated using the Microsoft certGen.sh were able to provision without issue, but upon switching to production certificates, we received the below json:
{"errorCode":401002,"trackingId":"701c9c8f-e467-47d8-8a01-c805a19ab22a","message":"Unauthorized","timestampUtc":"2024-02-08T18:13:04.331944Z"}
I was able to verify the api version impacted the response using curl and I updated the PROV_API_VERSION, rebuilt the sdk, and have our devices provisioning successfully.

@ericwolz ericwolz self-assigned this Feb 26, 2024
@ericwolz
Copy link
Contributor

ericwolz commented Feb 26, 2024

#2584

@ericwolz
Copy link
Contributor

fixed in PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants