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
I can't create a reprex because this depends on how GitHub responds to requests, but this morning, I was getting a lot of unicorns on GitHub in my browser and at the same time update_packages() (run interactively from the RStudio console) was intermittently throwing errors
Error: JSON: EXPECTED value GOT <
It took me a while to figure out what might be doing this, and I am still not certain, but my suspicion is that when update_packages() queries GitHub and then gets an error code (e.g., 503) with an HTML payload instead of the expected 200 code and a JSON payload, the JSON parser fails.
Maybe this could be addressed by inspecting the return code and throwing a more user-friendly error message if the https request returns an error code.
The text was updated successfully, but these errors were encountered:
jonathan-g
changed the title
update_packages() fails with cryptic error if GitHub returns 503
update_packages() intermittently fails with cryptic error when GitHub servers have problems
Apr 21, 2020
I can't create a reprex because this depends on how GitHub responds to requests, but this morning, I was getting a lot of unicorns on GitHub in my browser and at the same time
update_packages()
(run interactively from the RStudio console) was intermittently throwing errorsIt took me a while to figure out what might be doing this, and I am still not certain, but my suspicion is that when
update_packages()
queries GitHub and then gets an error code (e.g., 503) with an HTML payload instead of the expected 200 code and a JSON payload, the JSON parser fails.Maybe this could be addressed by inspecting the return code and throwing a more user-friendly error message if the https request returns an error code.
The text was updated successfully, but these errors were encountered: