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

Error: Failed to get R 4.2.0 #552

Closed
richelbilderbeek opened this issue Apr 22, 2022 · 7 comments
Closed

Error: Failed to get R 4.2.0 #552

richelbilderbeek opened this issue Apr 22, 2022 · 7 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@richelbilderbeek
Copy link

Describe the bug

When running r-lib/actions/setup-r@v1, the following error appears:

Error: Failed to get R 4.2.0: Failed to get R 4.2.0: Failed to download version 4.2.0: Error: Unexpected HTTP response: 403

To Reproduce

See for example this build log or the simplified .yaml file below:

on:
  push:
  pull_request:

name: R-CMD-check

jobs:
  R-CMD-check:
    runs-on: ubuntu-latest

    env:
      GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

    steps:
      - uses: actions/checkout@v2

      - uses: r-lib/actions/setup-r@v1

Expected behavior

That R is setup on GitHub Actions.

Additional context

It still worked approx 2 hours ago.

@richelbilderbeek richelbilderbeek added the bug an unexpected problem or unintended behavior label Apr 22, 2022
@gaborcsardi
Copy link
Member

You can switch to v2: https://github.com/r-lib/actions#releases-and-tags

richelbilderbeek pushed a commit to AJResearchGroup/gcaer that referenced this issue Apr 22, 2022
@richelbilderbeek
Copy link
Author

Yep, that works, thanks! So v1 stopped working at around 8:00 Stockholm time, use v2 as a workaround.

I am unsure to close this Issue, as I feel this is only a workaround...

@gaborcsardi gaborcsardi pinned this issue Apr 22, 2022
@gaborcsardi
Copy link
Member

v1 is not updated any more. It will work again, once we'll have R 4.2.0 builds available for Linux. But it is better to update to v2.

alex-d13 pushed a commit to omnideconv/SimBu that referenced this issue Apr 22, 2022
@alex-d13
Copy link

I switched to v2 but still the error message from above appears.

@gaborcsardi
Copy link
Member

@alex-d13 you might need to update this as well: https://github.com/omnideconv/SimBu/actions/runs/2207112235/workflow#L45

@gaborcsardi
Copy link
Member

@alex-d13 you can also greatly simplify the workflow, see the examples here: https://github.com/r-lib/actions/tree/v2/examples

@gaborcsardi gaborcsardi unpinned this issue Apr 25, 2022
blernermhc added a commit to End-to-end-provenance/provParseR that referenced this issue Aug 1, 2022
Change to v2 for setup-r.  Recommended here:  r-lib/actions#552
blernermhc added a commit to End-to-end-provenance/provParseR that referenced this issue Aug 1, 2022
Changed setup-r to use v2 as suggested in r-lib/actions#552
@github-actions
Copy link

github-actions bot commented Nov 5, 2022

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants