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

Object prototype may only be an Object or null: undefined #78

Closed
CarltonHenderson opened this issue Oct 18, 2021 · 4 comments
Closed

Object prototype may only be an Object or null: undefined #78

CarltonHenderson opened this issue Oct 18, 2021 · 4 comments

Comments

@CarltonHenderson
Copy link

With a workflow something like this:

jobs:
  build_and_test:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - uses: volta-cli/action@v1

Sometimes I get this error:

Run volta-cli/action@v1
  with:
downloading volta@1.0.5
Object prototype may only be an Object or null: undefined
Waiting 15 seconds before trying again
Object prototype may only be an Object or null: undefined
Waiting 17 seconds before trying again
Error: Object prototype may only be an Object or null: undefined

But we usually get something like this:

Run volta-cli/action@v1
downloading volta@1.0.5
/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/78439663-c6be-4524-a513-5bae4b96382d/bin -f /home/runner/work/_temp/b685a57c-16cf-4c07-b8bd-31cb865c76ee
/home/runner/work/_temp/78439663-c6be-4524-a513-5bae4b96382d/bin/volta setup
caching volta@1.0.5 into /opt/hostedtoolcache/volta/1.0.5/x64
adding /opt/hostedtoolcache/volta/1.0.5/x64/bin to $PATH
@rwjblue
Copy link
Collaborator

rwjblue commented Oct 18, 2021

Hmm, this is definitely strange. Any other error information printed to the console?

@rwjblue
Copy link
Collaborator

rwjblue commented Aug 18, 2022

I'm going to go ahead and close this for now, happy to reopen if it is still affecting folks but I think we'll need some way to debug (e.g. a reproduction repo or something).

@rwjblue rwjblue closed this as completed Aug 18, 2022
@colossalpat
Copy link

Ran into the same issue earlier this afternoon. Our solution was to update to v4 and the error went away.

Wondering if v1 had changes recently?

@rwjblue
Copy link
Collaborator

rwjblue commented Oct 19, 2022

Volta 1.1.0 was recently released, but unfortunately at the time of release only v4 of the action was able to download its assets (causing the error mentioned in this issues title). I've since backported those changes to all of the other major branches.

See #117 for details.

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

3 participants