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

When running release command, "Cannot read properties of undefined (reading 'statusCode')" #2239

Closed
Aesthetikx opened this issue Feb 9, 2023 · 10 comments

Comments

@Aesthetikx
Copy link

I am using the latest Heroku CLI, and experiencing this issue on multiple different machines and OSes. Starting a few weeks ago, I began seeing "Cannot read properties of undefined (reading 'statusCode')" upon every release, where I used to see, for example, output of database migrations, etc. This is from heroku container:release.

@k80bowman
Copy link
Contributor

Thank you for letting us know. We'll look into it.

@MDziwny
Copy link

MDziwny commented May 3, 2023

Did you find a solution ? We also have this issue and it has broken our CICD pipeline.

@MDziwny
Copy link

MDziwny commented May 3, 2023

If anyone has the same issue, we were installing the Heroku CLI with this command in a docker container based on node:12-alpine:

curl https://cli-assets.heroku.com/install.sh | sh

We solved the issue by installing it in a container based on node:18-alpine (we tried with node:20-alpine but it wasn't working yet).

@k80bowman
Copy link
Contributor

@Aesthetikx just checking in, does using a more recent version of node fix this issue for you?

@Aesthetikx
Copy link
Author

@Aesthetikx just checking in, does using a more recent version of node fix this issue for you?

@k80bowman I am no longer experiencing this issue, so at least for me it has been fixed.

@k80bowman
Copy link
Contributor

Thank you for the report! I'm going to close this issue for now.

@timon
Copy link

timon commented Dec 13, 2024

Hi
I'm observing the same behaviour in github runners starting today morning

UPD: our failing builds come from github runner ubuntu-22.04 version 20241211.1.0

Github runner details Current runner version: '2.321.0' Operating System Ubuntu 22.04.5 LTS Runner Image Image: ubuntu-22.04 Version: 20241211.1.0 Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20241211.1/images/ubuntu/Ubuntu2204-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20241211.1 Runner Image Provisioner 2.0.385.1

Successful builds were done with version 20241201.1.0

Github runner details

Current runner version: '2.321.0'
Operating System
Ubuntu
22.04.5
LTS
Runner Image
Image: ubuntu-22.04
Version: 20241201.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20241201.1/images/ubuntu/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20241201.1

The change might be attributed to heroku cli 10.0, as successful build contains the following line in the output:
› Warning: heroku update available from 9.5.0 to 10.0.0.

UPD: I've reported the issue to github runner repo: ⁠actions/runner-images#11184 — but seemingly it is version 10.0.0 introducing some sort of regression. I can report this as a separate issue or maybe we can reopen this.

UPD: for 10.0.0 regression, the issue reported is #3142

@tquid
Copy link

tquid commented Dec 13, 2024

I am also seeing this same behaviour since yesterday.

Current runner version: '2.321.0'
Operating System
Ubuntu
22.04.5
LTS
Runner Image
Image: ubuntu-22.04
Version: 20241211.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20241211.1/images/ubuntu/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20241211.1

@manelephant
Copy link

manelephant commented Dec 13, 2024

Same here - very annoying. Is there a fix for this ?

Although the github action status is marked as "failed", the release is deployed to heroku.

@arenoir
Copy link

arenoir commented Dec 13, 2024

Anyone have the deb file url of heroku cli v9.5.1 so that I can downgrade! I have been unable to downgrade using the following commands.

sudo apt-get install heroku=9.5.1
#E: Version '9.5.1' for 'heroku' was not found
heroku update --version=9.5.1
#[E: Version '9.5.1' for 'heroku' was not found](heroku: Updating CLI... not updatable)

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

7 participants