-
Notifications
You must be signed in to change notification settings - Fork 18
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
RE: 'Error: The API is currently unavailable #104
Comments
Thanks for reporting this. Where are you running this code (ie, office, home etc)? This often is a work firewall issue. |
Hi Seb, I am running from a work computer for Bedford Council, I tried the link you posted and it opens within my Chrome browser. Not sure if I would have to contact someone at our IT department about the firewall issue, but if I am able to open the link in chrome maybe I don't? What would you advise? Many thanks Jared |
Hi Jared, Are you able to check if that link opens in internet explorer? I don't know if it will make a difference, but it uses a function called All the best, |
So I ran the link in both Edge and IE and both were successful enough to show the text elements in the browser or recognise the JSON file. i can try running the curl function if you think that might help? Jared |
Hi Jared, You could try the following and let me know where the error occurs:
All the best, |
This is what I got as an error. > test <- "https://fingertips.phe.org.uk/api/profiles"
> test <- httr::GET(test,
+ httr::use_proxy(
+ curl::ie_get_proxy_for_url(test),
+ username = "",
+ password = "",
+ auth = "ntlm"))
Error in curl::curl_fetch_memory(url, handle = handle) :
Received HTTP code 403 from proxy after CONNECT Many thanks Jared |
That's useful. Could you try this now:
|
Seems like we have a similar error. Which is confusing because I've been able to use the coronavirusdata api for other pieces of work without a hitch. So this confuses me a bit more. > test <- "https://api.coronavirus.data.gov.uk/generic/healthcheck"
> test <- httr::GET(test,
+ httr::use_proxy(
+ curl::ie_get_proxy_for_url(test),
+ username = "",
+ password = "",
+ auth = "ntlm"))
Error in curl::curl_fetch_memory(url, handle = handle) :
Received HTTP code 403 from proxy after CONNECT |
Hmmm, that is confusing. That second test was to see whether it was a Fingertips specific issue or not. It seems to be an issue with your IT I think. Perhaps you're working in a new location? Or IT have changed something? I had a quick read about 403 errors but I'm not an expert, so I wasn't sure what it could be. Perhaps someone in your IT might be able to help though |
OK that's fair. I will start the discussion and see what I can find. Thanks for the help Seb. Kind regards Jared |
Hi @gzrcm - do you have the same history as Jared? |
One other thing I can add now is that people looking at this conversation can try the following too, using the latest version of the package:
|
Never mind... It wasn't working and yes, I did have the same history as Jared today. But I reinstalled the package and restarted R and it works fine? Bizarre, but it must have been on my end. It was working fine all week, not sure why today is different but resolved. Great package by the way! |
Hi, I've currently got this error and Any suggestions? |
Hi there,
I've been trying to get my head around an error that pops up when trying to load in data from the API in RStudio and get the following error message.
'Error: The API is currently unavailable' in the console
I've attached some code as an example
I've included the sessioninfo in case of any conflicting packages that may be interrupting connection.
Not sure exactly what is causing this but if anybody has some insight that would be much appreciated.
Kind regards
Jared Delbridge
The text was updated successfully, but these errors were encountered: