NativeScript / NativeScript/nativescript-cli

Cannot connect to device socket when you open second tab in Chrome

Open
#3,654 0 comments 0 reactions 0 assignees View on GitHub

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.
  1. tns create app
  2. tna debig ios
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.