Kotlin / kotlin-jupyter

Kotlin kernel for Jupyter/IPython
Apache License 2.0
1.12k stars 107 forks source link

Exception when reaching limit in github api #378

Closed devcrocod closed 2 years ago

devcrocod commented 2 years ago

I have made many requests to github api, after that I am trying to execute the following cell:

%useLatestDescriptors
%use dataframe

and get exception:

Failed to process '%use dataframe' command. Http request failed. Url = https://api.github.com/repos/Kotlin/kotlin-jupyter-libraries/contents//dataframe.json?ref=master. Response = {"message":"API rate limit exceeded for ****. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

java.io.IOException: Http request failed. Url = https://api.github.com/repos/Kotlin/kotlin-jupyter-libraries/contents//dataframe.json?ref=master. Response = {"message":"API rate limit exceeded for ***** (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

org.jetbrains.kotlinx.jupyter.exceptions.ReplPreprocessingException: Failed to process '%use dataframe' command. Http request failed. Url = https://api.github.com/repos/Kotlin/kotlin-jupyter-libraries/contents//dataframe.json?ref=master. Response = {"message":"API rate limit exceeded for ******. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

Is it possible in this case to import the library from cache, but with a warning that this is not the latest version?