cordova-plugin-dbcopy icon indicating copy to clipboard operation
cordova-plugin-dbcopy copied to clipboard

What's error code: 400?

Open fpassa opened this issue 6 years ago • 2 comments

When executing this on an Android device:

window.plugins.sqlDB.copy(QDB_NAME, 0, function (success) { }, function (error) { console.log("Error Code = " + JSON.stringify(error)); }); I get the following error:

Error Code = {"message":"www/Q4data.db","code":400}

So, what's the meaning of such code 400?

fpassa avatar Aug 11 '19 16:08 fpassa

Hi, Can you install the plugin from github url? I have updated the message variable in that error. The error only comes when there is some problem in copying the database. You can also get more useful information in Android monitor or Android Studio logcat.

an-rahulpandey avatar Aug 13 '19 07:08 an-rahulpandey

I'm using capacitor and got the same issue. I think it cannot find the www folder.

ncham avatar Mar 11 '21 06:03 ncham