-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"__nw_connection_get_connected_socket_block_invoke Connection has no connected handler" in logs #10027
Comments
+1 |
+1 not possible to fetch() remote json data on ios10 w/ RN 0.33 |
+1 ios 10.0.1 RN 0.33 |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Also happening with iOS 10.0.1 and RN 0.30 edit: I followed the recommendations here and am no longer getting the messages |
Still an issue with: It's working with the iOS 9.2 simulator, however. |
@marcpechaitis I'm not able to get to the library file for RCTWebSocket how did you find it? RTCWebSocket doesn't show up in my targets. |
Thanks for responding @marcpechaitis . Ah. OK - I think the issue is that react-native is integrated into my project, which was originally ONLY a native obj-c project. React was integrated in afterwards (using instructions here). So my project doesn't have a Libraries folder that contains each of the individual xcodeproj files. The files are in the project, just not contained within a target: |
+1 |
I was able to track down the RCTWebSocket.xcodeproj, open it, and alter the warning flags but the annoying edit: this is only an issue when building against main.jsbundle ... if I build against localhost (debug) these logs go away. I suspect that because I'm building in debug mode RN assumes I want to connect to the debug localhost server; which in this case is not true. My RN development is finished, and that portion of the app is running using the main.jsbundle file I created. |
The build error that @marcpechaitis mentioned was fixed in RN 0.33 |
@matthiasdilger oops, thought @marcpechaitis was referencing the OP. |
Hi, guys! This works for me (on simulator):
|
@HADB still fails on device for me |
Got it working on device and simulator now by reassigning all signing certificates and entitlements in the project. Xcode 8.0, ios10, iphone 5s |
None of these solutions work for me at all. I've added in the exceptions in my info.plist and I just can't connect to my package server from my physical phone. I don't want to turn off errors like @HADB mentioned with OS_ACTIVITY_MODE as well, this is a legitimate error. |
Any fix for this issue ? |
+1 RN 0.34.0 In the iOS 10 simulator, I'm also getting a ton of |
+1 RN 0.35.0-rc.0 |
+1 |
This seems to be an iOS 10 issue, and not a React Native one. https://twitter.com/xenadu02/status/776669668404629504 Using |
@aleclarson I agreed with the log part but react-native still fail to fetch the bundle file on IOS 10 |
@frnk94 Are you talking about the You might be using an outdated jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; |
@alanchenup I think its an issue with my AppDelegate.m not connecting to my actual device thanks for the reply i'l fix my code ! :). It working great in simulator |
This still is a problem on React Native 0.50.4, Xcode 9.1, iOS 11.1, macOS High Sierra
|
I'm having the same issue on my iPhone 6s, iOS 10. Compiled the iOS project from Xcode as per the wiki instructions and the app freezes in the splash screen. This is the log I'm getting:
And it goes on and on... |
Can anyone report if RN 0.51.0 fixed this? I doubt it did but I haven't been able to test it yet. |
Sadly it still exists.
Xcode:
|
Disable OS_ACTIVITY_MODE is not a good way. At first, I run After several hours working, and read all comment again and again. I finally find @emilsjolander 878b7e4 works perfectly. I get rid of this crazy log by comment the code in For others, I think upgrade React-native to 0.51.0 may solve this problem, seems 878b7e4 is in that branch. |
It still exists. xcode: 2018-01-10 15:54:15.635865 backgroundexample[3900:1884257] [] __nw_connection_get_connected_socket_block_invoke 146 Connection has no connected handler |
Anyone got a workaround?? It's still happened on my iOS device. |
I just implement partial workaround for this. See #17617 But unfortunate it's not enough. Especially because other websocket created in I probably can add another item to In-App Developer Menu to Enable/Disable connection to packager. What do people thinking? May be I'm missing something? |
I understand this problem..... but, still you can not connect, check your smartphone and desktop are connected on same network...... |
Is there any movement on this error? I'm still receiving the following errors, and I'm wondering if it is having any effect on connectivity for my included framework? Produced on RN: 51, 52 & 53, on a fresh project, promptly ejected
|
This still exists with RN 0.52.0 and 0.54.0-rc.3. |
Well, this is till an issue. iOS 11, react 0.54. Rebinding symbol does not seem to work on device, none of the replacement methods are called. It also bothers me that there are two websockets trying to connect to localhost despite running on device. |
This comment has been minimized.
This comment has been minimized.
Hey, I'm closing this one because it's stale and related to a version of React Native we no longer support. If the issue persists on the latest version, please re-open a new issue and reference this one. Thank you. |
Workaround
Edit by @hramos, maintainer:
Several solutions have been presented in this thread:
OS_ACTIVITY_MODE
@HADB proposed:
Name:
OS_ACTIVITY_MODE
Value:
disable
Using
react-devtools
Alternatively, ensure
react-devtools
is installed on your system.Resolution
This is a known issue in the iOS Simulator. The issue will remain open to increase visibility. We are limited comments on this thread to core contributors. Pull requests with proposed fixes are welcome.
Original Issue
ENV
RN 0.32
iOS 10, iPhone 6 Plus
Problem
The console of Xcode continue print "__nw_connection_get_connected_socket_block_invoke 6 Connection has no connected handler".
Screen
The text was updated successfully, but these errors were encountered: