-
Notifications
You must be signed in to change notification settings - Fork 37
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
htmlchecker: allow specifying error handling on encoding error #410
Conversation
I need to fetch a binary encoded file, which contains the update name. The file is binary and just contains some readable strings. The problem is, that it already fails with `Error querying for new versions: 'utf-8' codec can't decode bytes in position` thus I am not able to apply any regexes on it. Now I can set an attribute called `encoding-error` to `ignore`. This is kinda hacky.
So, anything on this? |
I'm not the maintainer here, but I don't think you should try force a binary download through As it turns out, I think this is protobuf format.
It looks like each item is a tuple of name, time of update and version number. While you could probably get away with parsing it with a regex, it's certainly not robust. This seems like it needs to be a custom checker to be done correctly. Alternatively, there could maybe be a |
Agreed. I don't think the html checker is the right tool to use here. Happily it seems that Teamspeak is covered by release-monitoring.org https://release-monitoring.org/project/8714/ so you can use the |
@dbnicholson Thats a interesting call, did not notice it (not worked with proto buf before) @wjt Agreed, but maybe there is future use for this, there are broken webpages. But Yes, I am abusing it for my usecase. |
I need to fetch a binary encoded file, which contains the update name. The file is binary and just contains some readable strings. The problem is, that it already fails with
Error querying for new versions: 'utf-8' codec can't decode bytes in position
thus I am not able to apply any regexes on it. Now I can set an attribute calledencoding-error
toignore
. This is kinda hacky.I am using the following checker code which now just works fine (tested it):