Skip to content

graphql error on some large repos #106

@cmdoret

Description

@cmdoret

When calling gimie on numpy/numpy, the license is missing from the output.

It occasionally crashes with:

gimie data --exclude-parser license https://github.com/numpy/numpy 
gimie/gimie/extractors/github.py:239 in _repo_data    │
│                                                                                                  │
│   236 │   │   response = send_graphql_query(GH_API, repo_query, data, self._headers)             │
│   237 │   │                                                                                      │
│   238 │   │   if "errors" in response:                                                           │
│ ❱ 239 │   │   │   raise ValueError(response["errors"])                                           │
│   240 │   │                                                                                      │
│   241 │   │   return response["data"]["repository"]   

ValueError: [{'message': 'Something went wrong while executing your query. Please include [...] when reporting this issue.'}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions