[Console Log Plugin] MABS error: CordovaError: Failed to fetch plugin com.outsystems.plugins.loader
console-log-plugin
Mobile icon
Forge component by Ricardo Alves
Application Type
Mobile
Service Studio Version
11.53.9 (Build 61018)

I'm having an issue with generating a Mobile Application with MABS.  I have for some weeks been successfully using MABS v7.2 to build Android and v8.1 iOS distributions.

On Monday, with no change to my application, MABS started to fail on both distributions.

To isolate the issue, I have created a miminal app with ConsoleLogPlugin and it fails in the same way, with the following errors from androidbuildlog.txt (file also attached). 

It appears from the log that MABS fails to fetch plugin com.outsystems.plugins.loader via registry.... 

Any help kindly appreciated.

----------


[2022-08-01T17:34:35.308Z] [VERBOSE] [Build] Requesting plugin "com.outsystems.plugins.loader".

[2022-08-01T17:34:35.308Z] [VERBOSE] [Build] Plugin dependency "com.outsystems.plugins.loader" not fetched, retrieving then installing.

[2022-08-01T17:34:35.313Z] [VERBOSE] [Build] fetch: Installing com.outsystems.plugins.loader to source

[2022-08-01T17:34:35.313Z] [VERBOSE] [Build] Running command: npm install com.outsystems.plugins.loader --save-exact

[2022-08-01T17:34:36.364Z] [VERBOSE] [Build] Command finished with error code 1: npm install,com.outsystems.plugins.loader,--save-exact

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] Failed to install 'com.outsystems.plugins.debuglogs': CordovaError: Failed to fetch plugin com.outsystems.plugins.loader via registry.

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] Probably this is either a connection problem, or plugin spec is incorrect.

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] Check your connection and plugin name/version/URL.

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] CordovaError: Error: npm: Command failed with exit code 1 Error output:

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] npm ERR! code E404

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] npm ERR! 404 Not Found - GET https://registry.npmjs.org/com.outsystems.plugins.loader - Not found

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] npm ERR! 404

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] npm ERR! 404 'com.outsystems.plugins.loader@*' is not in the npm registry.

[2022-08-01T17:34:36.366Z] [VERBOSE] [Build] npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

[2022-08-01T17:34:36.367Z] [VERBOSE] [Build] npm ERR! 404

[2022-08-01T17:34:36.367Z] [VERBOSE] [Build] npm ERR! 404 Note that you can also install from a

[2022-08-01T17:34:36.367Z] [VERBOSE] [Build] npm ERR! 404 tarball, folder, http url, or git url.

[2022-08-01T17:34:36.367Z] [VERBOSE] [Build] npm ERR! A complete log of this run can be found in:

[2022-08-01T17:34:36.367Z] [VERBOSE] [Build] npm ERR! /home/sandbox/.npm/_logs/2022-08-01T17_34_36_352Z-debug.log

[2022-08-01T17:34:36.367Z] [VERBOSE] [Build] at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:140:43

[2022-08-01T17:34:36.367Z] [VERBOSE] [Build] at processTicksAndRejections (internal/process/task_queues.js:95:5)

AndroidBuildLog.txt

I have found the issue.  It was the  Cordova ConsoleLogPlugin that was causing MABS to fail.

I created another test app, with a different plugin and MABS built it correctly.

Don't know why the original error log attached indicated that the cordova loader was the issue.   

Please would the author of the plugin look to resolve.

Many  thanks

Marc

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.