Add URL context when HTTP request failed #17677
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Roy Yang royyang@google.com
What would you like to be added:
Add url string when HTTP request failed.
Why is this needed:
When try to debug the failure of https://testgrid.k8s.io/sig-node-containerd#containerd-e2e-gci-1.2
Log
"W0521 03:55:46.864] 2020/05/21 03:55:46 main.go:319: Something went wrong: failed to acquire k8s binaries: Unexpected HTTP status code: 404"
https://storage.googleapis.com/kubernetes-jenkins/logs/ci-containerd-e2e-gci-gce-1-2/1263317436568965131/build-log.txt
is not helpful without url string.