question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Port overriding failing on 0.61.4

See original GitHub issue

With the standard port of 8081 in use, overriding the port to 8088 does not work. When running the iOS app, the app will still look for port 8081.

React Native version: System: OS: macOS 10.15.1 CPU: (12) x64 Intel® Core™ i7-8850H CPU @ 2.60GHz Memory: 431.70 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.4.0 - ~/.nvm/versions/node/v11.4.0/bin/node npm: 6.10.2 - ~/.nvm/versions/node/v11.4.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 24, 27, 28, 29 Build Tools: 27.0.3, 28.0.3, 29.0.0, 29.0.2 System Images: android-28 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.5 AI-191.8026.42.35.5977832 Xcode: 11.2.1/11B53 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.4 => 0.61.4

Steps To Reproduce

  1. npx react-native init Test
  2. cd Test
  3. npx react-native start --port=8088
  4. open ios/Test.xcworkspace in Xcode
  5. Edit Start Packager build phase of “Test” target to change port from 8081 to 8088
  6. Press Build and Run in Xcode
  7. Simulator will start, app will start, but error:
No bundle URL present.

Make sure you're running a packager server or have included a .jsbundle file in your application bundle.

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
  1. Debug console in Xcode shows that the app is still looking for port 8081:
2019-11-15 13:19:17.348467-0600 Test[39853:298200] Task <DCCAD9E5-5E8F-4253-BB54-F2386A778CD3>.<1> HTTP load failed, 564/0 bytes (error code: -1005 [4:-4])
2019-11-15 13:19:17.354410-0600 Test[39853:298200] Task <DCCAD9E5-5E8F-4253-BB54-F2386A778CD3>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSUnderlyingError=0x60000335fcc0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x6000019cd560 [0x7fff80615350]>{length = 28, capacity = 28, bytes = 0x1c1e1f91000000000000000000000000 ... 0000000100000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=http://localhost:8081/status, NSErrorFailingURLKey=http://localhost:8081/status, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-4, NSLocalizedDescription=The network connection was lost.}
2019-11-15 13:19:17.454 [fatal][tid:main] No bundle URL present.

Make sure you're running a packager server or have included a .jsbundle file in your application bundle.
2019-11-15 13:21:29.544057-0600 Test[39853:297947] Returning local object of class NSString

Describe what you expected to happen

I expect to see the starter app running in the simulator

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

1reaction
matt-wright86commented, Nov 24, 2019

I’m also experiencing this problem after upgrading to v0.61.4 from v.0.59.5

0reactions
stale[bot]commented, Feb 29, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rushstack/rushstack - Gitter
Hello everyone, I was wondering if it's currently possible to use rush change and rush publish without relying on rush to manage packages...
Read more >
projen/API.md - UNPKG
[GitpodOpenMode](#projen-gitpodopenmode)|Configure how the terminal should be opened relative to the previous task. 229, [GitpodPortVisibility](#projen- ...
Read more >
OpenWrt v22.03.0-rc1 Changelog
OpenWrt v22.03.0-rc1 Changelog This change log lists all commits done in preparation of OpenWrt 22.03 since OpenWrt 21.01, which became the previous stable ......
Read more >
MCUXpresso SDK API Reference Manual - NXP Community
The MCUXpresso Software Development Kit (MCUXpresso SDK) is a collection of software enable- ment for NXP Microcontrollers that includes peripheral drivers, ...
Read more >
Slackware "current" changelog
release, which may cause compatibility problems interacting with system ... gh-98517: Port XKCP's fix for the buffer overflows in SHA-3 to fix
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found