You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like either you do not have permission to see this repository or the rate limit for requests to GitHub has been exceeded. This usually happens when you are not logged in to gh-board. Try signing in to continue.
21
-
</p>
22
-
<code>{err.message}</code>
23
-
</div>
24
-
);
25
-
}elseif(err.name==='InvalidStateError'){
15
+
// If it is a permissions error then it might be a rate limit
16
+
if(err.name==='InvalidStateError'){
26
17
return(
27
18
<span>It looks like your browser is in private browsing mode. gh-board uses IndexedDB to cache requests to GitHub. Please disable Private Browsing to see it work.</span>
28
19
);
29
20
}else{
21
+
letmessage;
22
+
if(err.status===403)
23
+
message="It looks like either you do not have permission to see this repository or the rate limit for requests to GitHub has been exceeded. This usually happens when you are not logged in to gh-board. Try signing in to continue.";
24
+
else
25
+
message="Problem loading. Is it a valid repo? And have you exceeded your number of requests? Usually happens when not logged in because GitHub limits anonymous use of their API.";
30
26
return(
31
-
<span>
32
-
Problem loading. Is it a valid repo? And have you exceeded your number of requests? Usually happens when not logged in because GitHub limits anonymous use of their API.
0 commit comments