breautek commented on issue #375: Uknown error on read a file URL: https://github.com/apache/cordova-plugin-file/issues/375#issuecomment-583395338 I've trace where the `Invalid action` error comes from, and it appears to be coming from ```java if (!wasValidAction) { PluginResult cr = new PluginResult(PluginResult.Status.INVALID_ACTION); callbackContext.sendPluginResult(cr); } ``` https://github.com/apache/cordova-android/blob/c56cd4d5a8fdf2fc80ee8a9f1c960f21fca87a9a/framework/src/org/apache/cordova/PluginManager.java#L138-L141 This essentially occurs when the javascript tries to call a native method that doesn't exist or the native object that you're calling doesn't respond to that particular action. Now I'm not sure why are you are hitting this condition but given that you said you just upgraded from version 1.x to 6.x, I have a feeling that something didn't update right... So here are the things I would try: First, I would confirm that you're on the latest version of `cordova` cli, (`cordova@9`). Next, since you're on cordova-android 8.1, I would try removing and reinstalling the file plugin. ``` cordova plugin remove cordova-plugin-file cordova plugin add cordova-plugin-file ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
