cli icon indicating copy to clipboard operation
cli copied to clipboard

Output to standard error stream even on zero issues

Open Mhbuur opened this issue 1 year ago • 1 comments

I'm using the Azure DevOps pipeline integration: https://github.com/debricked/cli/blob/main/examples/templates/Azure/azure-pipelines.yml

I added to the yaml definition that the task should fail on std error, hoping to catch issues this way: image

It seems that there is output to routed to stderr instead of stdout, which obviously now causes my pipeline to fail, but without any real reason: image

Could you change the output type?

For the record there are no issues in my project: image

Mhbuur avatar Jun 13 '24 09:06 Mhbuur

Thanks, we will look into it!

sweoggy avatar Jun 14 '24 16:06 sweoggy

@sweoggy can you share anything on when or if this issue will be fixed?

Mhbuur avatar Aug 29 '24 07:08 Mhbuur

We aim to look into this issue next week :) @Mhbuur

sweoggy avatar Aug 30 '24 09:08 sweoggy

Hi again @Mhbuur! So after further investigation we realised the stderr output came from curl's progress meter, not the debricked CLI command itself. To fix your issue, please append sS after the -L flag, like so curl -LsS urlhere. We will update our templates accordingly

sweoggy avatar Sep 03 '24 07:09 sweoggy

Templates were updated in #256, I will now close this issue. Feel free to re-open the issue if you you need further assistance :blush:

sweoggy avatar Sep 03 '24 11:09 sweoggy

Perfect, thanks - I can confirm it worked :-)

Mhbuur avatar Sep 03 '24 12:09 Mhbuur