Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Android Download Manager - download happens succesfully but promise rejects #606

Open
@Noitidart

Description

@Noitidart

The download happens succesfully, even the notification is shown, using code:

        const res = await RNFetchBlob.config({
            addAndroidDownloads: {
                useDownloadManager: true,
                mime: mimeType,
                description: description || 'File from network',
                mediaScannable : true
            }
        }).fetch('GET', originalUrl, { 'Cookie':cookie });

However promise rejects for some file types (pdf) with: "Error: Download manager could not resolve downloaded file path."

Possible Unhandled Promise Rejection (id: 1):
Error: Download manager could not resolve downloaded file path.
fetch/promise</<@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:97845:23
__invokeCallback@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:2021:7
invokeCallbackAndReturnFlushedQueue/<@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:1845:9
__guard@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:1956:9
invokeCallbackAndReturnFlushedQueue@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:1844:7
onmessage@http://localhost:8081/debuggerWorker.js:72:25
EventHandlerNonNull*@http://localhost:8081/debuggerWorker.js:15:14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions