VSTS build status badge is not showing correctly

The VSTS badge URL can be seen on browser directly. However, Markdown cannot correctly display the badge as the response message from camo.githubusercontent.com is always Invalid upstream response (203). See my repos for example.

Any advice how to resolve the issue?

Looks like one needs to login to see the VSTS badge, so the proxy cannot actually download the image. Only images that do not require authentication can be used in markdown on GitHub.

1 Like

Found the answer. The correct URL is formed with VSTS API which does not require log-in. 

https://docs.microsoft.com/en-us/rest/api/vsts/build/badge/get%20build%20badge%20data?view=vsts-rest-4.1

I only get a setup badge when using the API