-
Notifications
You must be signed in to change notification settings - Fork 585
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
Enabling React Native Debug mode causes Error: Must first create RPC session with a valid host from rpc.js:314 #3358
Comments
Same thing happening here on iOS. It happens when I call |
Same with RN 63.2 and Realm 10.0.1. |
Thank for reporting. It is a bug that we need to fix. |
@kneth kindly fix this bug ASAP. Without seeing logging from chrome. Its been very difficult and time consuming to verify db data on shell. |
@Muzzamil75 We are working on it but I can't say when we have a fix. |
@kneth Kindly make merge with the master after all your fixes ! |
This is blocking us from using realm for a project we want to beta asap - mainly for offline. We do appreciate your effort in resolving the issue. Realm looks like a perfect fit for us once this issue is fixed. |
After fixing the RPC session bug, we ran into a couple of other issues which we are still working on. If you can debug on iOS for now, I suggest that you use Safari's debugger tools. You can follow the guide at https://reactnative.dev/docs/debugging#safari-developer-tools and in particular the change to |
Know you are working on some solution is amazing, thank you for your reply, I really appreciate your efforts to fix this. |
Started using Realm for a new project this week. Really looking forward for a fix for this one. |
I have been working on a PR (continuing @kneth's work) here: #3411. npm install https://github.com/realm/realm-js.git#kh/rn-create-session-continued |
@kraenhansen thanks for this. I just tried to install realm from the given branch and |
@kraenhansen Thanks for getting a PR out for this so quickly. However, I tried 10.0.2, the version this was fixed in, and I'm still getting this error. The stack trace in the React Native debugger appear to be the same as OP. Let me know if I can provide any more information to help debug this. Realm: 10.0.2
|
I am still getting this error even with realm 10.1.0. Anyone else? |
@Muzzamil75 This 404 is an error when the Chrome browser fails to fetch the React Native debugger UI and as such is unrelated to Realm JS. |
@Ninjaman494 & @jbstinson for transparency: I'm currently working on a fix for an issue related to the chrome debugger which shows itself when running an app that uses the BSON ObjectId or Decimal128 types (see #3452 and #3454 and my PR #3456 for context). |
@kraenhansen Thanks for the heads up! I'm using synced realms so I suspect my issue is caused by this |
Goals
Enable React Native Debug mode in order to troubleshoot console errors, set breakpoints, profile app, and monitor network requests.
Expected Results
Mobile app connects to React Native Debugger successfully and I'm able to set breakpoints, profile app, and monitor network requests, view console errors
Actual Results
:19
Mobile App
Sentry Stacktrace
React Native Debugger console
Steps to Reproduce
yarn android
to build react native application and install on deviceDebug
. This is successful if the user is not logged inVersion of Realm and Tooling
The text was updated successfully, but these errors were encountered: