-
Notifications
You must be signed in to change notification settings - Fork 0
Spec files larger than 1MB can't be retrieved from GitHub #26
Copy link
Copy link
Open
Labels
backendAffects the Spectacular backend componentAffects the Spectacular backend componentbugSomething isn't workingSomething isn't working
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
backendAffects the Spectacular backend componentAffects the Spectacular backend componentbugSomething isn't workingSomething isn't working