oprypin / nightly.link

Downloads the latest "nightly" build/artifact from a continuous testing workflow
https://nightly.link/
GNU Affero General Public License v3.0
675 stars 22 forks source link

internal server error #4

Closed simonmichael closed 3 years ago

simonmichael commented 3 years ago

Thanks for this service. I tried creating https://nightly.link/simonmichael/hledger/workflows/linux/master, but the hledger-ubuntu link there gives 500 internal server error. Granting access to the app didn't make a difference.

oprypin commented 3 years ago

curl -v -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/simonmichael/hledger/actions/artifacts/9022516/zip In this case GitHub itself produces 500 Internal Server Error:

{
  "message": "Failed to generate URL to download artifact",
  "documentation_url": "https://docs.github.com/rest/reference/actions#download-an-artifact"
}

I just generally don't forward these errors to the output in case GitHub's message discloses some secret.

oprypin commented 3 years ago

https://github.com/simonmichael/hledger/actions?query=workflow%3A%22linux+CI%22+event%3Apush+is%3Asuccess+branch%3Amaster And in this particular case, it seems extremely likely that the artifact (from "6 months ago") is simply expired. Would be nice if GitHub actually reported that through the API but it doesn't.

oprypin commented 3 years ago

So I added explanations for these error messages.

But now I also see that you're using scheduled runs, which should've showed up here, but only "push" artifacts runs are considered, and they're old, which you didn't expect.

So I'll also support scheduled runs.

simonmichael commented 3 years ago

Thank you! Working now.