cli / cli/cli

Unable to view job logs gh run view --log

Open
#11,059 23 comments 6 reactions 0 assignees View on GitHub
gh-run platform
Dominant language
Go
Stars
46.3k
Forks
9k
Avg merge
2d 9h
Merged PRs (30d)
89

Description

### Describe the bug

Running gh run view --log --job #jobNumber results in failure for logs of bigger size. This issue also occurs when downloading logs archives via GitHub webpage for the workflow.

### Affected version

gh version
gh version 2.74.0 (2025-05-29)
https://github.com/cli/cli/releases/tag/v2.74.0

### Steps to reproduce the behavior

1. Type this 'gh run view --log --job #jobNumber'
2. The output 'failed to get run log: stream error: stream ID 1; CANCEL; received from peer'

### Expected vs actual behavior

Error while trying to view logs for a job and the same issue occurs via GitHub.com as well, tried on chrome and safari. On safari after downloading for sometime I get 'The network connection is lost'. In some cases retrying the download archive works but CLI fails for specific jobs(I suspect it's to do with large log size). Log sizes are ~500MB for some workflows.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.