-
Notifications
You must be signed in to change notification settings - Fork 189
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
My Phone can't download JS bundle because of error - Failed to connect to /127.0.0.1:10000 #34
Comments
@puresprout I was also facing same issue while integrating codepush locally, in case of actual device you'll need to point it to device ip and in case of emulator it should be I did some changes in
if you're running in actual device then add you laptop or server local ip (replace |
@gkanishk I tried the way you suggested. The log output is as follows.
The actual download went well and related information was recorded in the phone's data directory as shown below.
When I restart the app, the updates still aren't applied. For reference, the app was launched by pressing I was wondering if I should do a release build, so I did the following, but even the update check didn't work in release mode.
Please help me. Did you successfully check for updates, download them, and apply the updates when you restarted the app? |
@puresprout what logs are you seeing in android device? can you try doing same change while |
I tested it further. I built it in release mode on my actual phone and ran it, but in release mode, http requests are blocked, so a network error occurs. So I added the following settings and tested it again, and everything went well, including the apply of the app update.
Everything works. Thanks |
I am getting this on client side
And on the server side, I get this error
BTW i am using this fork of this repo as i wanted to use AWS instead of azure |
@puresprout I have debugged the app locally on my real device, but CodePush is not detecting the bundle file. Below are the logs and code push release. |
checks following
|
` LOG [CodePush] Sync already in progress. ` But not update bundle, after restart app. |
I'm having the same issue. When I installed Standalone server , I enabled HTTPS and set my custom domain.
When I choose to actually update to newest package (run
Therefore, I try to replace server's downloadUrl generation with:
After this change, my client is able to see the correct downloadUrl domain. I have made |
Hello!
azurite, code-push server, CLI, and applying the code-push module to the React Native app
are completed.
And I bundled the JS code for the update and released the update content through the CLI.
So when I ran the app, I checked if there was a JS update code as follows.
And Update Popup is shown up
However, when I try to install by clicking the install button, I get the following error.
That is, My Real Phone requests a download to the address 127.0.0.1:10000, but from My Phone's perspective, 127.0.0.1 is the My Phone itself, so an error occurs.
How can I make requests come in to the code-push server for the local PC?
How should I set up the code-push server?
The code-push server document does not have any part for setting the azurite server address.
(It seems to be set only to the default IP and default port.)
(I tried setting the AZURE_STORAGE_CONNECTION_STRING environment variable in the api/.env file, but it does not apply at all.)
Or how should I set up azurite?
Please help.
@DavidKostDev
The text was updated successfully, but these errors were encountered: