Skip to content
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_socket_handle_socket_event [C39.1:1] Socket SO_ERROR [61: Connection refused] #22140

Closed
wzup opened this issue Nov 5, 2018 · 22 comments
Closed
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@wzup
Copy link

wzup commented Nov 5, 2018

React Native always sends this strange logs in Xcode console. This log is just infinite.

What does this log mean?
Is it normal for RN?
How to remove this behavior from my RN app?

screen shot 2018-11-05 at 12 06 20 pm

@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to propose a change or discuss a feature request, there is a repository dedicated to Discussions and Proposals you may use for this purpose.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Nov 5, 2018
@wzup
Copy link
Author

wzup commented Nov 5, 2018

This is ridiculous!
Fix your bot. I raised a question that your bot doesn't understand.

@EricPKerr
Copy link

@wzup i'm running into this issue too. Did you resolve?

@msand
Copy link
Contributor

msand commented Dec 12, 2018

Dupe of #21030

@ryd0rz
Copy link

ryd0rz commented Feb 7, 2019

+1

4 similar comments
@vocampos
Copy link

vocampos commented Mar 7, 2019

+1

@ImranNaseem1989
Copy link

+1

@kisakov
Copy link

kisakov commented Mar 30, 2019

+1

@zazagag
Copy link

zazagag commented Apr 2, 2019

+1

@msand
Copy link
Contributor

msand commented Apr 2, 2019

This should be fixed in the latest react-native. Provide a reproduction using the latest version, rather than +1 a closed issue which is a duplicate of a resolved problem.

@airlaser
Copy link

airlaser commented Apr 5, 2019

@msand I'm not seeing this fixed in 0.59.3. I see the code that should fix it, I'm definitely on 0.59.3, but I'm still getting the endless spam.

@lioPixiumDigital
Copy link

Still here in 0.59.5 too

@GreenRidingHood
Copy link

GreenRidingHood commented May 23, 2019

i have the same problem, my app stuck after success and metro-bundler shows 100%,
there is another ticket #24023 for this

react-native-cli: 2.0.1
react-native: 0.59.8
xcode Version 10.2.1 (10E1001)
build system Legacy

#24023 (comment) , i will try @patrickkempff solution and see

@GreenRidingHood
Copy link

@wzup like my previous comment @patrickkempff solution worked for me,

at AppDelegate.m , changing

return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];

to

return [NSURL URLWithString:@"http://<ip of the packager>:8081/index.bundle?platform=ios"];

@mpmprudencio
Copy link

+1

@DataGreed
Copy link

same problem

@RWOverdijk
Copy link

@msand This issue has been around for a long time, and issues about this keep getting closed left and right. It's not fixed, still exists, and is really annoying, too.

Anything we can do to help?

@airlaser
Copy link

airlaser commented Sep 7, 2019

My solution was to switch to flutter, it's been more performant and lacks the various little issues like this. And when they do happen, they get fixed.

@msand
Copy link
Contributor

msand commented Sep 7, 2019

@RWOverdijk Are you getting this error once on startup? Or does it keep writing that to the output every so often? The issue used to be that it kept retrying and eating up more memory. Now I only see it once on startup, so in that sense the issue is fixed already. I think facebook has some internal tools which aren't open source, and react-native is trying to connect to that, failing and thus causing this message. Either way it should only happen in development mode, and shouldn't be causing any issues as far as I know at the moment. Or do you have any other symptoms than this being written to output once?

I'm not on the core team, so I don't know anything about the actual difference in development environment internally at facebook vs open-source. And I don't have any power to change the logic related to this. I guess a configuration flag which would disable the system from even trying to connect would be useful, and wouldn't cause developers to go looking for the cause and fix for this warning/error message. What do you think @shergin ?

@RWOverdijk
Copy link

@msand This issue pops up while running, too. I filter out my logs now, but any other logs become impossible to read. And it keeps becoming more and more, like some old task keeps retrying while new tasks get spawned. I followed the upgrade paths from rndiff, so perhaps something wasn't in there and I missed a step? I'm on 0.59.10 right now, making the step to 0.60 once I fix issues with other libs, but I read that it should be fixed in 0.59.9 as well.

@packetstracer
Copy link

+1 here. Updated my Xcode and react-native-ble-plx in my project, and cannot start the app it gets stuck in Loaded 100%

@philipbapr
Copy link

philipbapr commented Oct 17, 2019

+1 here. I just update my RN to the latest with xcode latest version to and this issue still appear.

Since this issue already close without any fix maybe we can create a new one

@facebook facebook locked as resolved and limited conversation to collaborators Nov 5, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests