AzDO pipeline polling error: "invalid character '<' looking for beginning of value"
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 431
- Forks
- 44
- Avg merge
- 21h 18m
- Merged PRs (30d)
- 30
Description
While polling a build for completion, a call got this error, making the pipeline fail:
invalid character '<' looking for beginning of value
In my experience this happens when the API returns HTML instead of the expected JSON. Authentication is an easy way to hit it, but maybe it's rate limiting or some internal error?
At the very least, we should try to change the code to show the whole response when this happens so we can investigate. I'm not sure how deep in the AzDO library this would need to be done. We should also see if there are newer versions of the module available that might address this.
- Hit this during https://github.com/microsoft/go/issues/1031
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests; start by locating the Azure DevOps build-polling entry point and reproducing the linked build failure. Inspect the response behind the JSON parse error and check whether newer Azure DevOps module versions exist. Done means exposing the complete non-JSON response and adding coverage for the failure if the relevant test location can be found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, go
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100