Skip to content

Timeout Building Tree #90

@mattsoutherden

Description

@mattsoutherden

Hi Bengt.

Me again. Sorry. 😬

Further to the previous issue, now that uploading the blobs completes, I'm starting to hit a timeout creating the commit tree.

Contrary to the previous issue, I'm stumped as to how to approach this one.

Error: RequestError [HttpError]: Sorry, your request timed out.  It's likely that your input was too large to process.  Consider building the tree incrementally, or building the commits you need in a local clone of the repository and then pushing them to GitHub. - https://docs.github.com/rest/git/trees#create-a-tree
      at fetchWrapper (file:///home/runner/work/_actions/qoomon/actions--create-commit/v1/dist/index.js:34432:11)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async Job.doExecute (file:///home/runner/work/_actions/qoomon/actions--create-commit/v1/dist/index.js:1253:18) {
    status: 422,
    request: {
      method: 'POST',
      url: '**************',
      headers: {
        accept: 'application/vnd.github.v3+json',
        'user-agent': 'octokit-core.js/7.0.6 Node.js/24',
        authorization: 'token [REDACTED]',
        'content-type': 'application/json; charset=utf-8'
      },
      body: [Object: null prototype] {
        base_tree: '04734fec95d3c9f6f35a6a314ab57494b523cffa',
        tree: [Array]
      },
      request: {
        agent: [Agent],
        fetch: [Function: proxyFetch],
        hook: [Function: bound bound register],
        retryCount: 1
      }
    },
    response: {
      url: '**************',
      status: 422,
      headers: {
        'access-control-allow-origin': '*',
        'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
        'content-length': '333',
        'content-security-policy': "default-src 'none'",
        'content-type': 'application/json; charset=utf-8',
        date: 'Wed, 22 Apr 2026 17:33:26 GMT',
        'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
        server: 'github.com',
        'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
        vary: 'Accept-Encoding, Accept, X-Requested-With',
        'x-accepted-github-permissions': 'contents=write',
        'x-content-type-options': 'nosniff',
        'x-frame-options': 'deny',
        'x-github-api-version-selected': '2022-11-28',
        'x-github-media-type': 'github.v3; format=json',
        'x-github-request-id': '1C20:D1239:1406E17:4FB4862:69E9065D',
        'x-ratelimit-limit': '15000',
        'x-ratelimit-remaining': '14452',
        'x-ratelimit-reset': '1776880515',
        'x-ratelimit-resource': 'core',
        'x-ratelimit-used': '548',
        'x-xss-protection': '0'
      },
      data: {
        message: "Sorry, your request timed out.  It's likely that your input was too large to process.  Consider building the tree incrementally, or building the commits you need in a local clone of the repository and then pushing them to GitHub.",
        documentation_url: 'https://docs.github.com/rest/git/trees#create-a-tree',
        status: '422'
      }
    },
    [cause]: undefined
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions