I’m using Mender API to check through python if there’s a new update to install in hosted.mender.io. But when I use these link “https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/{device-id}/check-update”, I get “409 Client Error”. In mender API docs it says that it’s caused because the device it’s not connected. I checked the device status with the link “https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/{device-id}” and I get “‘status’: ‘unknown’” in the response. In Mender API docs also include the link “https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/{device-id}/connect” but I get 404 Error and I don’t be able to find the reason because I recreated the Mender API docs example, whit all the headers in the request. The device is a virtual machine menderized with debian, it works perfectly and I can install deployments through hosted.mender.io and manually using mender install, also in the mender page appears with connected status.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Device can't connect to hosted server | 3 | 939 | March 27, 2023 | |
Mender Server updating device configure by API | 2 | 9 | December 10, 2024 | |
Get Deployment Log for Device | 0 | 297 | April 1, 2022 | |
Why is my device polling localhost? | 21 | 76 | September 13, 2024 | |
Deployments created via REST are not discovered by device | 5 | 157 | August 15, 2024 |