Error when adding blocklist URL

Started by Zorquan81, December 25, 2022, 03:33:54 PM

Previous topic - Next topic
Im trying to add a custom URL to the Unbound blocker. Every time I try to apply it, i get this error.

What am I doing wrong please?


firstly, the list has an inappropriate format (this is a adblock filter list)
and blocklist script decoding uses strict error handling scheme: no errors are allowed when decoding the file.
there are error on decoding file (some non-utf symbols? I didn't dig deeper..)
error : 'utf-8' codec can't decode byte 0xd0 in position 3592: unexpected end of data

Ok, thank you! I thought it would just parse them out like pihole does when its doing its gravity update. But why not just say that instead of a cryptic error? Humbug!

December 28, 2022, 07:20:47 PM #3 Last Edit: December 28, 2022, 08:57:14 PM by Fright
a change commited to the master branch that adds logging for blocklist reading errors (that is, soon such errors (if any) will be in the unbound log). if the message like "error : 'utf-8' codec can't decode byte 0xd0 in position 3591: unexpected end of data" is not too cryptic for you  ;)
QuoteHumbug!
I don't know how to anticipate all combinations of errors and translate them into human-readable language ahead of time, do you?

Touche, but anythings better than "Generic error - go ask in the forum" no?

In any case, answered so thank you.