Replies: 1 comment 7 replies
-
You should always get an instance of authentication problems can be tricky. You might get a 404, not because the repository does not exist, but because the repository is private, and you don't have access with the current authentication. In same cases you get an explanatory explanation message, but not always. Sometimes the response headers include the required OAuth scopes for the endpoint along with the one the current token has (if it is an OAuth token), and sometimes it doesn't. GitHub's REST API is not as consistent as it could be To avoid rate limits, I recommend using https://github.com/octokit/plugin-throttling.js/ |
Beta Was this translation helpful? Give feedback.
-
Hi,
I can't find any information about error handling.
For example I'm using
octokit.actions.downloadArtifact
- what happens when I can't download artifact, for exampleWill it always throw
HttpError
or are there some cases when this (or any other) API returns some non-standard object?Thanks
Beta Was this translation helpful? Give feedback.
All reactions