| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
When using the response.content.toFile the dir for the file should be created it not exists instead of throwing an error
|
Thanks @gezn for taking part in the contributors contest and making your first contribution! |
Sorry, something went wrong.
|
test |
Sorry, something went wrong.
|
@vakrilov I have a question, What's not running correctly on jenkins tests? I tried to see the details of the build, but I can't reach the page. it says that the site can be reached or found. can you please send me the jenkins feedback so I can fix the PR, thaks in advance. |
Sorry, something went wrong.
|
Hey @gezn, |
Sorry, something went wrong.
|
thanks for the quick answer @vakrilov |
Sorry, something went wrong.
|
Hi @gezn , Congratulations on being one of the winners in the {N} First-time contributors contest! You can claim your prize by contacting us at nativescriptwinners[at]progress.com not later than Nov 30th 2018 . Make sure you send us the following info: Best regards, |
Sorry, something went wrong.
|
test |
Sorry, something went wrong.
|
CI reports failing test. iOS: Test: HTTP.test_request_responseContentToFileFromUrlShouldReturnCorrectFileAndCreateDirPathIfNecesary FAILED: result from to file should be greater than 0 in size Android: Test: HTTP.test_getFile FAILED: Cannot save file with path: /data/user/0/org.nativescript.UnitTestApp/files/logo.png. Test: HTTP.test_getContentAsFile FAILED: Cannot save file with path: /data/user/0/org.nativescript.UnitTestApp/files/test.png. Test: HTTP.test_request_responseContentToFileFromUrlShouldReturnCorrectFile FAILED: Test timeout. Test: HTTP.test_request_responseContentToFileFromUrlShouldReturnCorrectFileAndCreateDirPathIfNecesary FAILED: Test timeout Test: HTTP.test_request_responseContentToFileFromContentShouldReturnCorrectFile FAILED: Test timeout Test: IMAGE-SOURCE.testSaveToFile FAILED: java.io.FileNotFoundException: /data/user/0/org.nativescript.UnitTestApp/files/test.png: open failed: EISDIR (Is a directory) 4677 4677 E JS : libcore.io.IoBridge.open(IoBridge.java:452) 4677 4677 E JS : java.io.FileOutputStream.<init>(FileOutputStream.java:87) 4677 4677 E JS : java.io.FileOutputStream.<init>(FileOutputStream.java:127) 4677 4677 E JS : java.io.FileOutputStream.<init>(FileOutputStream.java:116) 4677 4677 E JS : com.tns.Runtime.callJSMethodNative(Native Method) 4677 4677 E JS : com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1120) 4677 4677 E JS : com.tns.Runtime.callJSMethodImpl(Runtime.java:1000) 4677 4677 E JS : com.tns.Runtime.callJSMethod(Runtime.java:987) 4677 4677 E JS : com.tns.Runtime.callJSMethod(Runtime.java:967) 4677 4677 E JS : com.tns.Runtime.callJSMethod(Runtime.java:959) 4677 4677 E JS : com.tns.gen.java.lang.Runnable.run(Runnable.java:15) 4677 4677 E JS : android.os.Handler.handleCallback(Handler.java:739) 4677 4677 E JS : android.os.Handler.dispatchMessage(Handler.java:95) 4677 4677 E JS : android.os.Looper.loop(Looper.java:148) 4677 4677 E JS : android.app.ActivityThread.main(ActivityThread.java:5417) 4677 4677 E JS : java.lang.re... Test: IMAGE-SOURCE.testSaveToFile_WithQuality FAILED: java.io.FileNotFoundException: /data/user/0/org.nativescript.UnitTestApp/files/test.png: open failed: EISDIR (Is a directory) 4677 4677 E JS : libcore.io.IoBridge.open(IoBridge.java:452) 4677 4677 E JS : java.io.FileOutputStream.<init>(FileOutputStream.java:87) 4677 4677 E JS : java.io.FileOutputStream.<init>(FileOutputStream.java:127) 4677 4677 E JS : java.io.FileOutputStream.<init>(FileOutputStream.java:116) 4677 4677 E JS : com.tns.Runtime.callJSMethodNative(Native Method) 4677 4677 E JS : com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1120) 4677 4677 E JS : com.tns.Runtime.callJSMethodImpl(Runtime.java:1000) 4677 4677 E JS : com.tns.Runtime.callJSMethod(Runtime.java:987) 4677 4677 E JS : com.tns.Runtime.callJSMethod(Runtime.java:967) 4677 4677 E JS : com.tns.Runtime.callJSMethod(Runtime.java:959) 4677 4677 E JS : com.tns.gen.java.lang.Runnable.run(Runnable.java:15) 4677 4677 E JS : android.os.Handler.handleCallback(Handler.java:739) 4677 4677 E JS : android.os.Handler.dispatchMessage(Handler.java:95) 4677 4677 E JS : android.os.Looper.loop(Looper.java:148) 4677 4677 E JS : android.app.ActivityThread.main(ActivityThread.java:5417) 4677 4677 E JS : ... Test: IMAGE-SOURCE.testFromFile FAILED: Cannot read property 'height' of null |
Sorry, something went wrong.
|
test |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When using the response.content.toFile the dir for the file should be created it not exists instead of throwing an error
PR Checklist
What is the current behavior?
#3870
What is the new behavior?
#3870
as described on the issue, in the new behavior it just tries to create the dir in case it doesn't exists before writing the file
Fixes #[3870].
BREAKING CHANGES:
no breaking changes
this is my first contribution