-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remotes::system_requirements
: Error: JSON: EXPECTED value GOT <
#663
Comments
If this is not something that can easily be resolved, perhaps a more descriptive error message could be produced in the meantime? |
I can't reproduce this, and this error simply occurs when the endpoint returns HTML or XML instead of JSON, likely due to an error page. What package you were you trying to retrieve the system requirements for? |
I think that's the crux of the issue, it happens seemingly at random. Some things that might help:
In this particular case, I'm using this function to install the necessary Linux deps to build and test my R packages (in this case You can see the full GH Actions workflow here: However, several hours ago, this error was also occurring when I ran the function by itself within my local Rstudio (MacOS), so it seems pretty independent of the pipeline. |
I think this issue occurs due to public RSPM being unavailable at random times, as it is now. |
The status page says RSPM is operational though... Must be a bug in the way statuses are monitored. |
This issue has also currently disabled rOpenSci's review bot, which is unable to check packages. Can reproduce by running call in a clean |
Hmm, all seems okay again now. It is clearly intermittent as @dinakar29 suggested, but during times of failure it does seem entirely reproducible. |
The start of this failure arises because the rspm API delivers a "504 Bad Gateway". The following code is where the failure is triggered in our case, because it presumes the remotes/R/system_requirements.R Lines 71 to 85 in fcad17b
That suggests that fixing this issue just needs an error handler around that to generate a more informative error message for anything other than a 200 status before passing to |
We have plans both to improve the performance, and also to have better fallback, but both will take a couple of weeks unfortunately. |
Hopefully this has been fixed now. |
Running:
produces the following error as of today:
Expected output
Character vector of Ubuntu system requirements.
Recurring issue
#494
#324
Many thanks,
Brian
The text was updated successfully, but these errors were encountered: