OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: Zorquan81 on December 25, 2022, 03:33:54 PM

Title: Error when adding blocklist URL
Post by: Zorquan81 on December 25, 2022, 03:33:54 PM
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?

Title: Re: Error when adding blocklist URL
Post by: Fright on December 25, 2022, 07:53:10 PM
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
Title: Re: Error when adding blocklist URL
Post by: Zorquan81 on December 28, 2022, 05:40:40 PM
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!
Title: Re: Error when adding blocklist URL
Post by: Fright on December 28, 2022, 07:20:47 PM
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?
Title: Re: Error when adding blocklist URL
Post by: Zorquan81 on December 30, 2022, 12:17:51 PM
Touche, but anythings better than "Generic error - go ask in the forum" no?

In any case, answered so thank you.