"Internal Error"(8) occurs in a function of the NEHotspotConfigurationManager class.

Hello all,

I have a question, I am developing an application that uses the apply() function of the NEHotspotConfigurationManager class to switch the Wifi of the device. In the completionHandler of the apply() function, the error argument contains “Internal Error(8)” and the wifi switching may fail. We have never seen this problem during development, and since it occurs only in the market, we are at a loss as to the cause and countermeasure. Do you know the cause of the “Internal Error(8)” and how to fix it?

A similar phenomenon has already been discussed in the following thread, but after countermeasures were taken in iOS12, it also occurs in iOS13 and later and no progress has been made since then. https://developer.apple.com/forums/thread/107851

I would appreciate it if someone could clarify what is happening with this error, as there is not much information on the web regarding this error.

Thank you in advance.

There’s really not much to say here. This is NEHotspotConfigurationErrorInternal and, almost by definition, if you get that error then something has gone wrong on the Apple side of things.

As you noted, we’ve seen reports like this before. I’ve yet to see any common thread to them. Each one is kinda different. So, while the bugs reported as part of those earlier cases may well be fixed, that doesn’t mean that you won’t see this error again in some other situation.

The only thing you can really do here is file an actionable bug report. However, that’s tricky given this:

We have never seen this problem during development, and since it occurs only in the market

I have some general advice on how to deal with this in Using a Sysdiagnose Log to Debug a Hard-to-Reproduce Problem. In this case you should think about what you can do to encourage you users to generate a sysdiagnose log, per the suggestions in the Prompting for a Sysdiagnose Log section of that post.

Share and Enjoy

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

"Internal Error"(8) occurs in a function of the NEHotspotConfigurationManager class.
 
 
Q