You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error message given by fetch for xhr.onerror is not useful #2952
Yes. I did not see a direct match yet on StackOverflow for NativeScript though I did find this same issue for React Native on StackOverflow. A related issue against the fetch.js NativeScript derived its implementation from is JakeChampion/fetch#367.
Tell us about the problem
The function assigned to xhr.onerror does not propagate helpful information concerning the error that occurred, instead only "Network request failed" is presented.
Which platform(s) does your issue occur on?
Both (tested on Android)
Please provide the following version numbers that your issue occurs with:
CLI: 2.3.0
Cross-platform modules: 2.3.0
Runtime(s): tns-android (2.3.0)
Plugin(s): none
Please tell us how to recreate the issue in as much detail as possible.
Create a new project using the typescript template. Use the code below and observe the output on the console.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
changed the title [-]Improve xhr.onerror error message given by `fetch`[/-][+]Error message given by `fetch` for xhr.onerror is not useful[/+]on Oct 24, 2016
Hey, @vossad01 we are open source product and we are welcoming all contributors.
In order to create PR you should first sign the CLA (Contribution License Agreement) and once added to our contributors list you can post your PR. The process is few steps only and once ready create your PRs against the master branch - they will be revised from other member and when tested and upvoted they can be merged.
Use this developers workflow which is updated and a lot of the works is now automated by npm scripts. Meanwhile, we will check the contributing guide for the errors you have described as it appears that some of the actions are now obsolete.
For a one-line fix you can directly create your PR against the master - once it gets upvoted by other members it will be automatically tested with the CI and when tests are OK it can be merged into master.
Activity
[-]Improve xhr.onerror error message given by `fetch`[/-][+]Error message given by `fetch` for xhr.onerror is not useful[/+]NickIliev commentedon Oct 25, 2016
Hey, @vossad01 we are open source product and we are welcoming all contributors.
In order to create PR you should first sign the CLA (Contribution License Agreement) and once added to our contributors list you can post your PR. The process is few steps only and once ready create your PRs against the master branch - they will be revised from other member and when tested and upvoted they can be merged.
More about contributing can be found here.
NickIliev commentedon Oct 26, 2016
Hey @vossad01 have you managed to create the PR - let me know if you need any assistance in the process
adamvoss commentedon Oct 27, 2016
Hi @NickIliev. I signed the CLA but have been having trouble getting the tests to run. If you can provide any assistance that would be great.
I figured out that I need to put
adbandemulatorfrom Android Studio on my path.I've done:
I have to remove the
-no-audiofrom thestartAndroidEmulatortask orexec:startAndroidEmulatorfails sayingAfter removing that flag, the emulator launches but
exec:npm-i-modulesfails sayingI have a
/home/vossad01/dev/NativeScript/bin/dist/tns-core-modules-*2.5.0*.tgzbut not `tns-core-modules-undefined.tgzIf manually rename the files, then
exec:npm-i-modulescompletes. However, the app in the emulator errors:I'm not really sure where to go from there.
NickIliev commentedon Oct 27, 2016
Hey @vossad01
Use this developers workflow which is updated and a lot of the works is now automated by npm scripts. Meanwhile, we will check the contributing guide for the errors you have described as it appears that some of the actions are now obsolete.
For a one-line fix you can directly create your PR against the master - once it gets upvoted by other members it will be automatically tested with the CI and when tests are OK it can be merged into master.
adamvoss commentedon Oct 28, 2016
@NickIliev that helped a lot! Thanks! I had been trying to use the instructions for running the tests.
I have the tests running now. I should be able to implement this tomorrow.
lock commentedon Aug 29, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.