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

Unexpected response: 403 #347

Closed
noonchen opened this issue Dec 16, 2021 · 3 comments
Closed

Unexpected response: 403 #347

noonchen opened this issue Dec 16, 2021 · 3 comments

Comments

@noonchen
Copy link

Describe the bug
macos-11 only, Error: [getlatestRelease] Unexpected response: 403 when downloading source code from numpy/numpy.

To Reproduce

jobs:
  macos-cp39:
    runs-on: macos-11
    steps:
      - name: Setup Python
        uses: actions/setup-python@v2.2.2
        with:
          python-version: 3.9
          architecture: x64

      - uses: robinraju/release-downloader@v1.2
        name: Download latest numpy source
        with: 
          repository: "numpy/numpy"
          latest: true
          zipBall: true
          out-file-path: "downloads"

No issue in linux-latest so far.
Github action link: https://github.com/noonchen/STDF-Viewer/runs/4549369806?check_suite_focus=true

Any suggestions what happened? It works pretty fine before.

@robinraju
Copy link
Owner

robinraju commented Dec 16, 2021

@noonchen Unfortunately, this action is not tested against macOS runner yet.
I found an issue reported earlier related to macOS runner here: actions/runner-images#602

It says GitHub rate limits API calls from macOS runner and returns 403. A quick look at the issue gives me the impression that you should provide a token. (it's meaningless for public repos).

Can you try creating a personal access token and add it to the secrets of your repo.

try the following

uses: robinraju/release-downloader@v1.2
        name: Download latest numpy source
        with: 
          repository: "numpy/numpy"
          latest: true
          zipBall: true
          token: "{{secrets.YOUR_TOKEN_NAME}}"
          out-file-path: "downloads"

I'm not 100 % sure about this, but at least give it a try and let's see how it goes.

@noonchen
Copy link
Author

It says GitHub rate limits API calls from macOS runner and returns 403. A quick look at the issue gives me the impression that you should provide a token. (it's meaningless for public repos).

Thanks for the info! However, It is a public repo, should I still try it? FYI, This action can eventually pass after 4-5 attempts.

@robinraju
Copy link
Owner

I think it's a glitch on GitHub, where it limits requests from macOS on an hourly/daily basis. Closing this for now as it started working for you.

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

2 participants