Mender-cli artifacts list failing with JSON unmarshal error (Hosted Mender)

Hello,

We are using Hosted Mender.

A mender-cli command that runs in our daily CI/CD pipeline, which had been succeeding, has suddenly started to fail. This issue began approximately around 2025-10-27 18:00 UTC.

Here is the command and the error message we are receiving:

Command:

mender-cli artifacts list --server ${MENDER_SERVER_URI} --token-value ${PERSONAL_ACCESS_TOKEN}

Error:

FAILURE: json: cannot unmarshal object into Go struct field .updates.meta_data of type []interface {}

We have not changed the mender-cli tool, our authentication credentials (Personal Access Token), or the Mender server URL. Because of this, we suspect that the API response from the Hosted Mender server has changed, causing this client-side parsing error.

We are using mender-cli version 1.12.0, obtained from: https://downloads.mender.io/mender-cli/1.12.0/linux/mender-cli

Could you please investigate if this is an issue with the mender-cli tool, or if there was a recent change in the Hosted Mender API response that would cause this unmarshaling error for version 1.12.0?

Thank you.

Hi @nomtor0204!

Thanks for reaching out and alerting us to this issue.

We have investigated and found an issue in the latest version of hosted Mender that makes an API endpoint incompatible with this mender-cli command.

A fix is being implemented and we intend to release this to hosted Mender as soon as possible.

Thanks!

Best,
Frode

2 Likes

Hi again @nomtor0204 ,

We have today deployed an update to hosted Mender that fixes this problem and your mender-cli command should be working as expected

Thanks!

Best,
Frode

Hi @frodeha,

Thank you for the updates and for deploying the fix so quickly.

I can confirm that our CI/CD pipeline ran successfully this morning, and the mender-cli command is working as expected again.

The issue is resolved. We really appreciate your prompt response and resolution.

Best regards,