Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of feedback from bad HEAD responses #1799

Open
piksel opened this issue Oct 13, 2023 · 1 comment
Open

Lack of feedback from bad HEAD responses #1799

piksel opened this issue Oct 13, 2023 · 1 comment

Comments

@piksel
Copy link
Member

piksel commented Oct 13, 2023

When watchtower tries to perform a HEAD check for container image updates, if the repository responds with anything but a valid JSON response, the only feedback to the user is a parade error.

It would be much more helpful if the warning would say "failed to parse response, see log for details", and then that the response was logged in full (using notify=no).

The message is a bit cryptic, but what it means is that the repository responds with something that is not valid JSON. Instead of starting with {, it starts with S, which is probably a proxy error.
Watchtower still falls back to doing a regular pull though, so I'm not sure what else we can do...

If the message is cryptic and making it difficult to troubleshoot, I wonder if it would be worthwhile investigating a way to make that particular error more verbose (but not run the entire container verbose as that might just cause noise, even more so if it's an intermittent issue (seems to be in my case))?

Originally posted by @modem7 in #1514 (comment)

@Riteek712
Copy link

hi, @piksel Can you please assign me this issue, I want to work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants