Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Error when adding blocklist URL
« previous
next »
Print
Pages: [
1
]
Author
Topic: Error when adding blocklist URL (Read 1334 times)
Zorquan81
Newbie
Posts: 6
Karma: 0
Error when adding blocklist URL
«
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?
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Error when adding blocklist URL
«
Reply #1 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..)
Code:
[Select]
error : 'utf-8' codec can't decode byte 0xd0 in position 3592: unexpected end of data
Logged
Zorquan81
Newbie
Posts: 6
Karma: 0
Re: Error when adding blocklist URL
«
Reply #2 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!
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Error when adding blocklist URL
«
Reply #3 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
Quote
Humbug!
I don't know how to anticipate all combinations of errors and translate them into human-readable language ahead of time, do you?
«
Last Edit: December 28, 2022, 08:57:14 pm by Fright
»
Logged
Zorquan81
Newbie
Posts: 6
Karma: 0
Re: Error when adding blocklist URL
«
Reply #4 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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Error when adding blocklist URL