NativeScript / NativeScript/nativescript-cli
Cannot connect to device socket when you open second tab in Chrome
Offen
Dieses Issue hat noch niemand übernommen.
bug
debug
os: ios
to-be-checked
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
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>
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem mit tns debug ios und der generierten URL, die in zwei Chrome-Tabs geöffnet wird. Beginne mit lib/common/errors.js und lib/device-sockets/ios/socket-proxy-factory.js, insbesondere mit dem gemeldeten Socket-Fehlerpfad. Als erledigt gilt, dass der zweite Tab nicht mehr leer ist und nicht den Fehler bei der device-socket-Verbindung auslöst.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, javascript
- Bereich
- cli, mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 35/100