Error 401 in API when using latest balenaOS RPi4

Hello

There is a weird error with the latest version of balenaos on the RPi 4. I know of the API not sending a required header, this was solved by just upgrading the API version.

Now, older versions of balenaos work perfectly on the API version, only the latest balenaos images of the Pi family give a 401 error in the API.

Has anybody seen this problem before and knows of a solution? Is something wrong with the built balena images as downloading a dev image gives a prod image?

Best regards
GoogleIt

Hi @GoogleIt ,

Would you be able to provide a bit more information on what you’re trying to achieve? Where do you see the 401 error? Is that after a specific command?

With regards to the image, do you mean that you download a dev image and the device reports it’s running a production image?

Cheers,
Nico.

Hello,

Thanks for the reply, in the meantime I found out my problem was not setting the --dev flag in the cli.
The 401 error was fully resolved, it was a mistake on my end which caused the 401 error to pop up.

Thanks