How to fix “nw_connection_receive_internal_block_invoke” (console)

前端 未结 2 493
情歌与酒
情歌与酒 2020-12-24 11:20

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 rep

相关标签:
2条回答
  • 2020-12-24 11:54

    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.

    0 讨论(0)
  • 2020-12-24 12:09

    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.

    0 讨论(0)
提交回复
热议问题