Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Error on remote builder android linux #810

Open

Description

@ribafs

PhoneGap CLI, node & npm versions

Phonegap 8.2.2
node - 11.14
npm - 6.7

Expected Behaviour

Compile to builder

Actual Behaviour

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:141:11)
at Object.rmdir (fs.js:687:14)
at Object.cleanup (/usr/lib/node_modules/phonegap/node_modules/phonegap-build/lib/phonegap-build/create/zip.js:119:16)
at Object.callback (/usr/lib/node_modules/phonegap/node_modules/phonegap-build/lib/phonegap-build/create/remote.js:83:21)
at Request._callback (/usr/lib/node_modules/phonegap/node_modules/phonegap-build-api/lib/api.js:214:22)
at Request.self.callback (/usr/lib/node_modules/phonegap/node_modules/request/request.js:185:22)
at Request.emit (events.js:193:13)
at Request. (/usr/lib/node_modules/phonegap/node_modules/request/request.js:1161:10)
at Request.emit (events.js:193:13)
at IncomingMessage. (/usr/lib/node_modules/phonegap/node_modules/request/request.js:1083:12)

Steps to Reproduce

On linux mint 19.1
phonegap remote build android

Sample Code that illustrates the problem

https://github.com/ribafs/breakout-br

Error messages

Activity

  1. andersborgabiro commented on Apr 29, 2019

    @andersborgabiro

    It's still this way. Any way to escalate?

    There's of course the ZIP file workaround, but it sucks IMHO.

    This is what I get. Looks pretty similar.

    D:\Projects\PhoneGap\Projects\WrapperPolygon\Project New>call phonegap remote --no-proxy build android
    [phonegap] compressing the app...
    [phonegap] uploading the app...
    There was an unhandled exception within phonegap-cli! If you would like to help the PhoneGap project, please file the following details over at https://github.com/phonegap/phonegap-cli/issues
    TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at makeCallback (fs.js:136:11)
    at Object.rmdir (fs.js:666:14)
    at Object.cleanup (C:\Users\Anders Borg\AppData\Roaming\npm\node_modules\phonegap\node_modules\phonegap-build\lib\phonegap-build\create\zip.js:119:16)
    at Object.callback (C:\Users\Anders Borg\AppData\Roaming\npm\node_modules\phonegap\node_modules\phonegap-build\lib\phonegap-build\build\remote.js:71:21)
    at Request._callback (C:\Users\Anders Borg\AppData\Roaming\npm\node_modules\phonegap\node_modules\phonegap-build-api\lib\api.js:230:26)
    at Request.self.callback (C:\Users\Anders Borg\AppData\Roaming\npm\node_modules\phonegap\node_modules\request\request.js:185:22)
    at Request.emit (events.js:189:13)
    at Request. (C:\Users\Anders Borg\AppData\Roaming\npm\node_modules\phonegap\node_modules\request\request.js:1161:10)
    at Request.emit (events.js:189:13)
    at IncomingMessage. (C:\Users\Anders Borg\AppData\Roaming\npm\node_modules\phonegap\node_modules\request\request.js:1083:12)

  2. andersborgabiro commented on Jul 15, 2019

    @andersborgabiro

    I just updated everything (node, cordova, phonegap, npm) and I still get the same result, in my case on Windows.

    npm: 6.10.1
    node: 10.16.0 (lower than for @ribafs, but the official version)
    cordova: 9.0.0
    phonegap: 8.2.2 (released November 2018)

  3. dbessa1 commented on Jul 30, 2019

    @dbessa1

    também estou com o mesmo problema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions