Using the Bloom filter tool to configure a URL filter Error 9

Hi,

I tried to follow this guide: https://developer.apple.com/documentation/networkextension/filtering-traffic-by-url

And this: https://github.com/apple/pir-service-example

I already deploy the pir service on my server. And set the configuration on the app like this: { name = SimpleURLFilter identifier = xxxxx applicationName = SimpleURLFilter application = com.xxxx.SimpleURLFilter grade = 2 urlFilter = { Enabled = YES FailClosed = NO AppBundleIdentifier = com.mastersystem.SimpleURLFilter ControlProviderBundleIdentifier = com.xxxx.SimpleURLFilter.SimpleURLFilterExtension PrefilterFetchFrequency = 2700 pirServerURL = https://xxxxx/pir pirPrivacyPassIssuerURL = https://xxxxx/pir AuthenticationToken = AAAA pirPrivacyProxyFailOpen = NO pirSkipRegistration = NO } }

But I got this error when I tried to enable the service on the app: Received filter status change: <FilterStatus: 'stopped' errorMessage: 'The operation couldn’t be completed. (NetworkExtension.NEURLFilterManager.Error error 9.)'>

What does that error mean? And how to fix it?

Answered by DTS Engineer in 875771022

Error 9 is .serverSetupIncomplete. See here.

IMPORTANT You can use code like to map NEURLFilterManager error codes to their symbolic values:

let e = NEURLFilterManager.Error(rawValue: 9)
print(e ?? "-")
// -> serverSetupIncomplete

Errors like this are usually accompanied by a system log entry with more details. I’d expect the log entry to have a subsystem of com.apple.networkextension.

For lots of information on using the system log effectively, see Your Friend the System Log.

I also recommend that you enable additional NE logging, per the VPN (Network Extension) instructions on our Bug Reporting > Profiles and Logs page.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Error 9 is .serverSetupIncomplete. See here.

IMPORTANT You can use code like to map NEURLFilterManager error codes to their symbolic values:

let e = NEURLFilterManager.Error(rawValue: 9)
print(e ?? "-")
// -> serverSetupIncomplete

Errors like this are usually accompanied by a system log entry with more details. I’d expect the log entry to have a subsystem of com.apple.networkextension.

For lots of information on using the system log effectively, see Your Friend the System Log.

I also recommend that you enable additional NE logging, per the VPN (Network Extension) instructions on our Bug Reporting > Profiles and Logs page.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Using the Bloom filter tool to configure a URL filter Error 9
 
 
Q