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

WebSocket error #37331

Closed
shiwuqi opened this issue May 9, 2023 · 4 comments
Closed

WebSocket error #37331

shiwuqi opened this issue May 9, 2023 · 4 comments
Labels
Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.

Comments

@shiwuqi
Copy link

shiwuqi commented May 9, 2023

Description

react-native 0.71.7
react 18.2.0

React Native Version

0.71.7

Output of npx react-native info

{"isTrusted":false,"message":"Failed to connect to /127.0.0.1:3000"}

Steps to reproduce

yarn android

Snack, code example, screenshot, or link to a repository

const socket = new WebSocket('http://127.0.0.1:3000'); socket.addEventListener('error', (err: any) => { console.log('============', err); })

@hamdikahloun
Copy link

Hello @shiwuqi
If its a android Emulator please check https://developer.android.com/studio/run/emulator-networking

@cortinico cortinico added Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. labels May 9, 2023
@github-actions
Copy link

github-actions bot commented May 9, 2023

⚠️ Missing Reproducible Example
ℹ️ It looks like your issue is missing a reproducible example. Please provide either:

@github-actions
Copy link

github-actions bot commented May 9, 2023

⚠️ Missing Environment Information
ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.

@shiwuqi shiwuqi closed this as completed May 10, 2023
@Deepak-1D
Copy link

HI @shiwuqi may I know how did you solve the above error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.
Projects
None yet
Development

No branches or pull requests

4 participants