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

Does not detect truncated GitHub API blobs #177

Open
denizdogan opened this issue Jun 18, 2023 · 1 comment
Open

Does not detect truncated GitHub API blobs #177

denizdogan opened this issue Jun 18, 2023 · 1 comment

Comments

@denizdogan
Copy link

We encountered a bug where the library says "Internal Error: No components founds!" even though the file is valid. It works with a local file.

We figured out that the problem comes from some response size limit in GitHub. It would be nice if the library would detect truncated responses, and tell the user about it, as such:

query {
  repository(name: "...", owner: "...") {
    object(expression: "<ref>:<specPath>") {
      ... on Blob {
        isTruncated /* this one does it */
        text
      }
    }
  }
}

The output is then:

{
  "data": {
    "repository": {
      "object": {
        "isTruncated": true,

Thanks!

@fabien0102
Copy link
Owner

Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants