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

Spec files larger than 1MB can't be retrieved from GitHub #26

Open
pburls opened this issue Apr 25, 2021 · 0 comments
Open

Spec files larger than 1MB can't be retrieved from GitHub #26

pburls opened this issue Apr 25, 2021 · 0 comments
Labels
backend Affects the Spectacular backend component bug Something isn't working

Comments

@pburls
Copy link
Collaborator

pburls commented Apr 25, 2021

Spec files larger than 1MB (like this one) can't be retrieve using the existing approach of using the GitHub Repository Contents API.
The following error message is returned:

org.springframework.web.client.HttpClientErrorException$Forbidden: 403 Forbidden: [{"message":"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.","errors":[{"resource":"Blob","field":"data","code":"too_large"}],"documentation_url":"https://docs.github.com/rest/reference/repos#get-repository-content"}]

It is likely that the GitHub Blob API needs to be used instead.

@pburls pburls added backend Affects the Spectacular backend component bug Something isn't working labels Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Affects the Spectacular backend component bug Something isn't working
Development

No branches or pull requests

1 participant