Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin broken with Phonegap 2.8.x : Invalid action #2

Open
biodiv opened this issue Jun 20, 2013 · 2 comments
Open

Plugin broken with Phonegap 2.8.x : Invalid action #2

biodiv opened this issue Jun 20, 2013 · 2 comments

Comments

@biodiv
Copy link

biodiv commented Jun 20, 2013

since pg 2.8 I cannot connect to a database. Visual Studio throws the following:

Failed to deserialize Cordova.Extension.Commands.SQLitePlugin+SQLitePluginOpenCloseOptions with JSON value :: ["System.Collections.Generic.Dictionary`2[System.String,System.Object]","SQLitePlugin991260919"]
ERROR: Exception in ProcessCommand :: Exception has been thrown by the target of an invocation.
ERROR: failed to InvokeMethodNamed :: open on Object :: SQLitePlugin
CommandString : DebugConsole/log/DebugConsole991260920/"Error openening DB: undefined"
Log:["Error openening DB: undefined","DebugConsole991260920"]

Code used to connect:

db = sqlitePlugin.openDatabase("mydatabase.sqlite3", '', '', '', function () {
    if (db) {
        console.log('successfully connected to database');
    }
});

if I catch the error message it says "Invalid action".

Any ideas how to fix this?

@marcucio
Copy link
Owner

I'm not sure what happening based on that error and I won't be able to test it and look into it for a little while.

@marcucio
Copy link
Owner

It might be useful to see which Cordova apis changed, or if you can debug the code using something like a remote web inspector:

https://github.com/phonegap/phonegap/wiki/Debugging-in-PhoneGap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants