0
votes

I'm trying to axios.get repos from most popular users on Github. The problem is I can't get past rate limit using OAuth token. error message

const headers = {
"Authorization" : `token ${process.env.REACT_APP_API_KEY}`,
'User-Agent': 'kiknalex'}

const userRepos = (reposUrl) => {
const request = axios.get(reposUrl);
return request.then(response => response.data, {
    "headers": headers
})}

But it gives me this error Response Headers

I've also tried to authenticate using curl,but it didn't work. How do I authenticate with OAuth token properly, or is there any other way to make rate limit higher.

1
Looks like the API you are using has a limit of 60 request for some time interval. Meaning once you have used your 60 request they block you for X ammout of time. This might be helpful. - Mellet

1 Answers

0
votes

Update: Apparently I "sent" headers in the response, it should be in get request.