NEVPNConnectionErrorDomainPlugin code 7 on URLFilter sample code

Hello,

I have been playing around the the SimpleURLFilter sample code. I keep getting this error upon installed the filter profile on the device:

mapError unexpected error domain NEVPNConnectionErrorDomainPlugin code 7

which then causes this error:

Received filter status change: <FilterStatus: 'stopped' errorMessage: 'The operation couldn’t be completed. (NetworkExtension.NEURLFilterManager.Error error 14.)'>

I can't find much info about code 7.

Here is the configuration I am trying to run:

<Configuration: pirServerURL: 'http://MyComputer.local:8080' pirAuthenticationToken: 'AAAA' pirPrivacyPassIssuerURL: 'http://MyComputer.local:8080' enabled: 'true' shouldFailClosed: 'true' controlProviderBundleIdentifier: 'krpaul.SimpleURLFilter.SimpleURLFilterExtension' prefilterFetchInterval: '2700.0'>
Answered by DTS Engineer in 860838022

What platform are you testing this on?

I've submitted a bug report: FB20479096

OK. But it has no sysdiagnose log, which is gonna limit its ability to get traction. I recommend that you grab a sysdiagnose log immediately after reproducing the problem and then attach it to your bug. See our Bug Reporting > Profiles and Logs for more on sysdiagnose logs.

Oh, and while you’re there, have a read of the VPN (Network Extension) for the platform you’re targeting and enable the extra diagnostics.

Share and Enjoy

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

I see that another developer has also run into this issue: https://developer.apple.com/forums/thread/791352?answerId=847563022#847563022

The suggested fix of quitting the Settings app before configuring the app did not work for me. I've submitted a bug report: FB20479096

What platform are you testing this on?

I've submitted a bug report: FB20479096

OK. But it has no sysdiagnose log, which is gonna limit its ability to get traction. I recommend that you grab a sysdiagnose log immediately after reproducing the problem and then attach it to your bug. See our Bug Reporting > Profiles and Logs for more on sysdiagnose logs.

Oh, and while you’re there, have a read of the VPN (Network Extension) for the platform you’re targeting and enable the extra diagnostics.

Share and Enjoy

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

I am testing on iOS 26. I have reproduced the bug and collected a sysdiagnose (thank you for your guidance).

I have uploaded the sysdiagnose to my bug report, so if you could get my ticket back in the loop I'd appreciate it. Thanks!

I have reproduced the bug and collected a sysdiagnose

Thanks. I took a quick look at your bug (FB20479096) and it’s definitely in the right place.

As to this mysterious error 7, that’s actually pretty generic. The more interesting error is error 14, in your second snippet, which is specific to URL filters. That is .unknown:

print(NEURLFilterManager.Error.unknown.rawValue)
// -> 14

Usually errors like this come are accompanied by more hints in the system log. I explained that idea in this post yesterday.

Share and Enjoy

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

NEVPNConnectionErrorDomainPlugin code 7 on URLFilter sample code
 
 
Q