How to fix "nw_connection_receive_internal_block_invoke" (console)
Asked Answered
S

2

42

I'm configuring a new Firebase app in Xcode, but get "nw_connection_receive_internal_block_invoke [C1] Receive reply failed with error 'Operation canceled'" printed repeatedly in the console. What should I do to fix this?

This is in Xcode 11 Beta 3, and I've tried creating a new project altogether since the original was created from an older version of Xcode, yet I still get this error printed repeatedly in the console even though all I've done is run it once after configuring.

I expect to see no errors in the console, yet this error is printed many times.

Seamy answered 8/8, 2019 at 21:8 Comment(7)
Duplicate of #57414146Malchus
I get the same message (for several betas now) from a straightforward URLSession call. I've come to the conclusion it's a beta related informational message that has yet to be cleaned up.Panicle
@JimMarquardt well, still the same error more than a month later, with Xcode 11 GM 2Orthodontics
This is still exist in released version of Xcode 11.Gallinacean
Having same issue here. The console shows these messages after navigationController.pop.Frederick
Seems to be fixed in Xcode 11.1Hintze
Getting this on xcode 12 beta on a URLSession, still seems to work OK. Any ideas?Dolliedolloff
S
1

I was getting the same error. My code looked like this:

UserServices().getUserWithUID(uid: user.uid) { (user) in
    self.window?.rootViewController = MapViewController(user: user)
    self.window?.makeKeyAndVisible()
}

All I did to resolve the problem was change my code to this:

let userServices = UserServices()
userServices.getUserWithUID(uid: user.uid) { (user) in
    self.window?.rootViewController = MapViewController(user: user)
    self.window?.makeKeyAndVisible()
}

and the console errors disappeared.

Sapiential answered 25/10, 2019 at 10:43 Comment(0)
M
0

I found out, that this popped up, after I inserted a password, that had less characters. Somehow Firebase needs minimum six letters and I tried to use three.

Mam answered 23/9, 2019 at 12:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.