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: fetch failed #21

Open
anoop-namboodiri opened this issue Nov 28, 2024 · 2 comments
Open

Error: fetch failed #21

anoop-namboodiri opened this issue Nov 28, 2024 · 2 comments

Comments

@anoop-namboodiri
Copy link

I am running the action in a github self hosted runner which inside a firewall. It has a proxy ip to access outside sites. I get the error "Error: fetch failed" when running the action. I suspect it occurs here:

const res = await fetch(downloadUrl)

I added the proxy at the step level as well as the global level and both didn't work. Is it possible to make the downloadUrl configurable to use a local maven repo? Or am I overlooking something? Please help.

  • name: Allure Report Action
    env:
    HTTPS_PROXY:
    uses: mgrybyk-org/[email protected]
    if: always()
    continue-on-error: true
    id: allure # used in comment to PR
    with:
    report_id: 'allure-report'
    gh_pages: 'gh-pages-dir'
    report_dir: 'target/allure-results'
@anoop-namboodiri
Copy link
Author

I checked my proxy in the runner again today and it works fine. I am able to connect to https://repo.maven.apache.org/maven2/io/qameta/allure/ from the runner.
So now I am not sure what the error is for because there is no further information apart from
Error: fetch failed

@mgrybyk
Copy link
Collaborator

mgrybyk commented Dec 1, 2024

It might be the case that proxy is not applied correctly.
We can definitely add an option to override download url.

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