tidyversedashboard icon indicating copy to clipboard operation
tidyversedashboard copied to clipboard

Figure out why sparklines seem to fail randomly

Open jimhester opened this issue 7 years ago • 1 comments

jimhester avatar Aug 17 '18 17:08 jimhester

I think this is because of the caching (or lack thereof) (https://developer.github.com/v3/repos/statistics/#a-word-about-caching)

Computing repository statistics is an expensive operation, so we try to return cached data whenever possible. If the data hasn't been cached when you query a repository's statistics, you'll receive a 202 response; a background job is also fired to start compiling these statistics. Give the job a few moments to complete, and then submit the request again. If the job has completed, that request will receive a 200 response with the statistics in the response body.

We would need to check for a 202 response and retry it in a few moments.

jimhester avatar Dec 03 '18 19:12 jimhester