an-rahulpandey / cordova-plugin-dbcopy

Copy SQLite Database from www folder to default app database location
Apache License 2.0
89 stars 48 forks source link

What's error code: 400? #61

Open fpassa opened 5 years ago

fpassa commented 5 years ago

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?

an-rahulpandey commented 5 years ago

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.

ncham commented 3 years ago

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