Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This API returns blobs up to 1 MB in size. The requested blob is too large to fetch via the API, but you can use the Git Data API to request blobs up to 100 MB in size. #414

Open
shanejix opened this issue Dec 3, 2021 · 0 comments
Labels
Type: Bug Something isn't working as documented
Projects

Comments

@shanejix
Copy link

shanejix commented Dec 3, 2021

What happened?

when i use @octokit/core.js like this:

const { Octokit } = require("@octokit/core");

Octokit.request('GET /repos/{owner}/{repo}/contents/{path}', {
      owner: owner,
      repo: repo,
      path: path
    })

log info:

RequestError [HttpError]: This API returns blobs up to 1 MB in size. The requested blob is too large to fetch via the API, but you can use the Git Data API to request blobs up to 100 MB in size.: {"resource":"Blob","field":"data","code":"too_large"}
    at /xxx/node_modules/@octokit/request/dist-node/index.js:86:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5)


@shanejix shanejix added the Type: Bug Something isn't working as documented label Dec 3, 2021
@ghost ghost added this to Bugs in JS Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
No open projects
JS
  
Bugs
Development

No branches or pull requests

1 participant