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.

zone-nativescript ERROR on with angular and iOS simulator

See original GitHub issue

When I run it on Android get request work correctly. But on IOS it return nativescript error(not server).

{"line": 994,"column": 38,"sourceURL": "file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js"

Which platform(s) does your issue occur on?

  • iOS 11.4 Iphone 6 emulator

Please, provide the following version numbers that your issue occurs with:

✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 4.0.1 and the latest available version is 4.1.1.
✔ Component tns-core-modules has 4.1.0 version and is up to date.
✔ Component tns-android has 4.1.3 version and is up to date.
✔ Component tns-ios has 4.1.1 version and is up to date.

"dependencies": {
    "@angular/animations": "~5.2.0",
    "@angular/common": "~5.2.0",
    "@angular/compiler": "~5.2.0",
    "@angular/core": "~5.2.0",
    "@angular/forms": "~5.2.0",
    "@angular/http": "~5.2.0",
    "@angular/platform-browser": "~5.2.0",
    "@angular/platform-browser-dynamic": "~5.2.0",
    "@angular/router": "~5.2.0",
    "install": "^0.11.0",
    "nativescript-angular": "^5.3.0",
    "nativescript-drop-down": "^4.0.0",
    "nativescript-filter-select": "^1.2.9",
    "nativescript-floatingactionbutton": "^4.1.3",
    "nativescript-fontawesome": "^1.0.0",
    "nativescript-image-cache": "^1.1.6",
    "nativescript-loading-indicator": "^2.4.0",
    "nativescript-localstorage": "^1.1.5",
    "nativescript-open-app": "^0.2.0",
    "nativescript-permissions": "^1.2.3",
    "nativescript-phone": "^1.3.1",
    "nativescript-pulltorefresh": "^2.1.0",
    "nativescript-ripple": "^2.0.0",
    "nativescript-snackbar": "^2.0.1",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-autocomplete": "^3.7.0",
    "nativescript-ui-dataform": "^3.6.0",
    "nativescript-ui-sidedrawer": "^3.5.1",
    "reflect-metadata": "~0.1.8",
    "rxjs": "^5.5.0",
    "rxjs-compat": "^6.2.0",
    "tns-core-modules": "^4.0.1",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@angular-devkit/core": "~0.5.5",
    "@angular/compiler-cli": "~5.2.0",
    "@ngtools/webpack": "~1.9.4",
    "babel-traverse": "6.24.1",
    "babel-types": "6.24.1",
    "babylon": "6.17.0",
    "clean-webpack-plugin": "~0.1.19",
    "codelyzer": "^3.0.1",
    "copy-webpack-plugin": "~4.3.0",
    "css-loader": "~0.28.7",
    "extract-text-webpack-plugin": "~3.0.2",
    "lazy": "1.0.11",
    "nativescript-dev-typescript": "^0.7.1",
    "nativescript-dev-webpack": "^0.11.0",
    "nativescript-worker-loader": "~0.8.1",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.2.1",
    "typescript": "~2.6.2",
    "uglifyjs-webpack-plugin": "~1.1.6",
    "webpack": "~3.10.0",
    "webpack-bundle-analyzer": "^2.9.1",
    "webpack-cli": "~2.0.14",
    "webpack-sources": "~1.1.0"
  }

Is there any code involved?

{
"line": 994,
"column": 38,
"sourceURL": "file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js",
"originalStack": "ZoneAwareError@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:994:38\nfile:///app/tns_modules/tns-core-modules/http/http-request/http-request.js:87:37\nUIApplicationMain@[native code]\nstart@file:///app/tns_modules/tns-core-modules/application/application.js:264:26\nrun@file:///app/tns_modules/tns-core-modules/application/application.js:284:10\nbootstrapNativeScriptApp@file:///app/tns_modules/nativescript-angular/platform-common.js:158:26\nbootstrapApp@file:///app/tns_modules/nativescript-angular/platform-common.js:92:38\nbootstrapModule@file:///app/tns_modules/nativescript-angular/platform-common.js:81:26\nanonymous@file:///app/main.js:7:57\nevaluate@[native code]\nmoduleEvaluation@[native code]\n[native code]\npromiseReactionJo
CONSOLE ERROR file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:569:26: Unhandled Promise rejection: A error occured ; Zone: <root> ; Task: Promise.then ; Value: Error: A error occured HttpError@file:///app/shared/error/http.error.js:5:14 [<root>]
httpResponseHandler@file:///app/helpers/httpResponseHandler.js:63:38 [<root>]
onHttpStreamError@file:///app/shared/http/http.service.js:118:58 [<root>]
onHttpStreamError@[native code] [<root>]
error@file:///app/tns_modules/rxjs/operators/catchError.js:104:39 [<root>]
_error@file:///app/tns_modules/rxjs/Subscriber.js:132:31 [<root>]
error@file:///app/tns_modules/rxjs/Subscriber.js:106:24 [<root>]
onError@file:///app/tns_modules/@angular/http/bundles/http.umd.js:1641:39 [<root>]
file:///app/tns_modules/tns-core-modules/xhr/xhr.js:151:26 [<root>]
forEach@[native code] [<root>]
emitEvent@file:///app/tns_modules/tns-core-modules/xhr/xhr.js:150:25 [<root>]
_setReadyState@file:///app/tns_modules/tns-core-modules/xhr/xhr.js:218:31 [<root>]
file
CONSOLE ERROR file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:571:22: Error: Uncaught (in promise): Error: A error occured
HttpError@file:///app/shared/error/http.error.js:5:14 [<root>]
httpResponseHandler@file:///app/helpers/httpResponseHandler.js:63:38 [<root>]
onHttpStreamError@file:///app/shared/http/http.service.js:118:58 [<root>]
onHttpStreamError@[native code] [<root>]
error@file:///app/tns_modules/rxjs/operators/catchError.js:104:39 [<root>]
_error@file:///app/tns_modules/rxjs/Subscriber.js:132:31 [<root>]
error@file:///app/tns_modules/rxjs/Subscriber.js:106:24 [<root>]
onError@file:///app/tns_modules/@angular/http/bundles/http.umd.js:1641:39 [<root>]
file:///app/tns_modules/tns-core-modules/xhr/xhr.js:151:26 [<root>]
forEach@[native code] [<root>]
emitEvent@file:///app/tns_modules/tns-core-modules/xhr/xhr.js:150:25 [<root>]
_setReadyState@file:///app/tns_modules/tns-core-modules/xhr/xhr.js:218:31 [<root>]
file:///app/tns_modules/tns-core-modules/xhr/xhr.js:74:37 [<root

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
abhayastudioscommented, Oct 18, 2018

@tsonevn I has always been enabled (for me it is set to Freeway Drive). I remind you that the first time the simulator starts it works just fine.

Honestly, it happens only with the simulator, so I don’t think you should invest much time it it, better focus on more important issues…

0reactions
tsonevncommented, Oct 18, 2018

Hi @abhayastudios, I tested the attached project and was able to recreate the case(Timeout while searching for location!) only when the simulator Location setting is disabled (Debug->Location->None). This seems to be expected behaviour. Can you try enabling this setting on your side and check if you will have the same problem? For example: screen shot 2018-10-18 at 11 17 43 am

Read more comments on GitHub >

github_iconTop Results From Across the Web

TestFlight crashes: you don't have permission to save the file ...
I have an iOS application in appstore connect built with Nativescript + Angular. I've tested it in Xcode simulator and on a physical...
Read more >
RadListView and the plugin nativescript-imagepicker - Telerik
module.ts ) and I have updated nativescript-imagepicker-2.5.1.tgz. When I run using bundle by 'npm run start-ios-bundle-dev ', the error ...
Read more >
ionic build ios error ionic cordova build ios | Edureka Community
When i run "ionic cordova build ios" get error below in terminal: The following build commands failed: Ld build/emulator/Posify\ ...
Read more >
error domain=wkerrordomain code=4 "a javascript exception ...
CONSOLE ERROR file:///app/tnsmodules/nativescript-angular/zone-js/dist/ ... In iOS simulator also working fine I am getting error in iOS real device only.
Read more >
NativeScript - Bountysource
iOS Runtime: 6.1.1; Plugin(s): unrelated. Describe the bug tns run ios command can install, restart and sync the app on iOS emulator, but...
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