REST API /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs
returns 404 while workflow run is still running
#75518
Unanswered
cunla
asked this question in
API and Webhooks
Replies: 60 comments 3 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Any update ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The 404 errors you're encountering are likely because GitHub hasn't finalized the logs for workflows or jobs that are still running. To address this, consider implementing retry mechanisms and utilize the GitHub Actions UI for real-time monitoring until logs are available through the API. Additionally, ensure you're not hitting GitHub API rate limits. Check your API request frequency and adjust as necessary to avoid exceeding rate limits, which could also affect log retrieval. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
It is impossible to receive the logs of a workflow-run that is in-progress because of that reason.
Also using https://api.github.com/repos/OWNER/REPO/actions/jobs/JOB_ID/logs for getting a specific job logs it returns 404 while the job is running.
Beta Was this translation helpful? Give feedback.
All reactions