Open Kodalem opened 9 months ago
By learning more about .json with Python, the following response.text
from the uri is this:
{"errorCode":400004,"trackingId":"12a8445c-5bcf-4028-82a2-b2adda56fb7c","message":"Unsupported API version 2019-01-15.","timestampUtc":"2024-02-04T20:29:26.8360444Z"}
Which explains why it cannot find the operationId
.
Can the following API version be upgraded?
Yeah, as I was afraid, just changing into latest self._api_version = '2022-07-31'
at provision.py
didn't make it work out of the box and throws another new error. Likely I assume due to new standards to be following with the header?
{"Error":{"Code":"UnsupportedApiVersion","Message":"The HTTP resource that matches the request URI \u0027https://global.azure-devices-provisioning.net/0ne00B7339E/registrations/477qz26jl6/register\u0027 does not support the API version \u00272020-08-01\u0027.","InnerError":null}}
I have the same issue `on
Registering...
Traceback (most recent call last):
File "
@mheskandari I have the same issue too. Did you solve it ?
@mheskandari I have the same issue too. Did you solve it ?
Nope, went to AWS IoT solution instead. This is likely broken till the package maintainer (Microsoft) fixes the issue with the outdated API solution. Kind of a shame because the client had preferred to use Power BI instead of creating house-built data visualiser.
@mheskandari Thank you for your replying. Like you, I am giving up connecting pico w to Azure and moving to AWS
@mheskandari I switched from Azure to AWS IoT Core like you , but encountered an error of "bytes index out of range" and still am not able to solve it. If you don't mind, would you share your MicroPython code successful to connect to AWS IoT.
Following the sample.py, my PicoW on Micropython throws the following error at the
client.connect()
, even running the pull request version of the library threw the same error.Here's the following slightly modified sample code.
Upon further inspection, it appears the
uri
that is received indeed has a certificate and it is received, but it appears somewhere here lies the issue, but unsure what exactly is going on under the hood to fix this.Here's the certificate of the uri.
Is this a hardware issue or is something wrong from the IoT Hub setup in my Azure?