NativeScript / NativeScript/nativescript-cli
Cannot connect to device socket when you open second tab in Chrome
Open
Nobody has claimed this yet.
bug
debug
os: ios
to-be-checked
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Try to debug ios on device. If you open URL on second tab you will see that it is empty and exception will throw.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 4.1.0
- Runtime(s): 4.1.0
Please tell us how to recreate the issue in as much detail as possible.
- tns create app
- tna debig ios
- copy the URL and paste it in 2 tabs in chrome
the second tab is empty and there is error:
at Errors.fail (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:125:28)
at Errors.failWithoutHelp (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:135:21)
at SocketProxyFactory.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:91:38)
at Generator.throw (<anonymous>)
at rejected (/usr/local/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:5:65)
at <anonymous>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with tns debug ios and the generated URL opened in two Chrome tabs. Start with lib/common/errors.js and lib/device-sockets/ios/socket-proxy-factory.js, especially the reported socket error path. Done means the second tab is no longer empty and does not throw the device-socket connection error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100