Error Domain=NSURLErrorDomain Code=-1009

When I make a local network HTTP request, an error occurs. I'm sure I've granted wireless data permissions and local network permissions, and I'm connected to the correct Wi-Fi. This problem is intermittent, but once it happens, it will keep happening, and the only way to fix it is to restart the phone. Here is the error log:


sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1009 "似乎已断开与互联网的连接。" UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x30398a5b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (Local network prohibited), interface: en0[802.11], uses wifi, _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <CA16F87F-8156-43D7-AAF9-63BC551A2F09>.<63>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <CA16F87F-8156-43D7-AAF9-63BC551A2F09>.<63>" ), NSLocalizedDescription=似乎已断开与互联网的连接。, NSErrorFailingURLStringKey=http://192.168.2.1:80/v1/parameters, NSErrorFailingURLKey=http://192.168.2.1:80/v1/parameters, _kCFStreamErrorDomainKey=1})


Answered by DTS Engineer in 831217022

I have a bunch of info about local network in TN3179 Understanding local network privacy but…

the only way to fix it is to restart the phone.

So, yeah, that’s problematic. Local network privacy should behave deterministically, meaning that there shouldn’t ever be a case where restarting your phone fixing things. Give that, I think this automatically qualifies as a bug, and I recommend that you file it as such.

Make sure to include a sysdiagnose log taken as soon as possible after you see the problem.

Please post your bug number, just for the record.

Share and Enjoy

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

I have a bunch of info about local network in TN3179 Understanding local network privacy but…

the only way to fix it is to restart the phone.

So, yeah, that’s problematic. Local network privacy should behave deterministically, meaning that there shouldn’t ever be a case where restarting your phone fixing things. Give that, I think this automatically qualifies as a bug, and I recommend that you file it as such.

Make sure to include a sysdiagnose log taken as soon as possible after you see the problem.

Please post your bug number, just for the record.

Share and Enjoy

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

Error Domain=NSURLErrorDomain Code=-1009
 
 
Q