-
Notifications
You must be signed in to change notification settings - Fork 0
Implementation issues
ronan edited this page Aug 5, 2021
·
2 revisions
A common issue that you may run into when working with the GitHub API is that you receive the below response:
Response code: 403 (Forbidden)
Response Body:
Request forbidden by administrative rules. Please make sure your request has a User-Agent header
This is a specific issue with the GitHub API, more details on the solution can be found here.
To resolve the issue, add the following as the User-Agent
header when making requests:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 YaBrowser/16.3.0.7146 Yowser/2.5 Safari/537.36
For certain GitHub API operations, they are only available for developers to preview and are subject to change. To access these API during the preview period, you must provide a custom media type in the Accept
header of the request:
application/vnd.github.scarlet-witch-preview+json