GitHub Actions API No Longer Returns Logs in Real-Time (Only After Job Completion) #154834
Unanswered
RiswanChatholi
asked this question in
Actions
Replies: 1 comment
-
|
Did you ever get a resolution to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi GitHub Community,
I’ve been using the GitHub Actions API to fetch workflow job logs in real time within my application. The API I’m using is:
curl -H "Authorization: token MY_GITHUB_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ "https://api.github.com/repos/OWNER/REPO/actions/jobs/JOB_ID/logs?tail_logs=true"This was previously working fine, meaning:
✅ The API used to return partial logs first (like runner info and setup details).
✅ After job completion, it used to provide the full log.
However, recently something changed:
❌ Now, the API returns a 404 (Not Found) error while the job is running.
❌ Once the job is completed, the logs are available.
My Questions:
1️⃣ Has GitHub changed anything in the API behavior that affects real-time log retrieval?
2️⃣ Is there a new way to fetch partial logs while the job is still running?
3️⃣ Are there any workarounds or recommended approaches to stream logs in real-time?
Would really appreciate any insights or updates on this!
Thanks in advance.
`
Beta Was this translation helpful? Give feedback.
All reactions