Skip to content

"progressed is not a function" error on apk install #828

@slankes

Description

@slankes

I stumbled over an issue that when plugging in a phone, APK installation would fail and the log would have a message "progressed is not a function". When I removed the .progressed call from lib/units/device/resources/service.js it started working.

So I submitted this pull request: #827

I'm opening this ticket to get to the bottom of the issue.

The progressed function comes from bluebird.js. According to the changelog shipped with the container, version 2.11.0 (released 8.5 years) ago is being used. This version does have a progressed function.

Looking at the bluebird changelog I see the following:

  • progress is deprecated in bluebird and has been removed since release 3.0 (sometime in 2015)
  • they are suggesting to use native node promises instead of bluebird.js wherever possible

I am not very fluent in javascript but for me the only reason for the error I am seeing is that something pulls in a newer version of bluescript.js and the one shipped in the container is not used.

I have no idea why it does work for others and only breaks for me though.

Any ideas are appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions