Skip to content
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

Fingertips API currently unavailable? #24

Open
AGlenn3 opened this issue Feb 9, 2023 · 1 comment
Open

Fingertips API currently unavailable? #24

AGlenn3 opened this issue Feb 9, 2023 · 1 comment

Comments

@AGlenn3
Copy link

AGlenn3 commented Feb 9, 2023

Hi,
My script using FingertipsR, which I was using on Tuesday (7th Feb) without any issues, has now stopped working and is returning the following error:

Listening on http://127.0.0.1:7660
Warning: Error in : The API is currently unavailable
54: stop
53: fingertips_ensure_api_available
52: indicators
51:
49: server
3: shiny::runApp
2: runGadget
1: select_indicators
Error : The API is currently unavailable

This happens whenever I want to select indicators. Nothing has changed on my side since Tuesday. Same computer and connections etc.
I've tried reinstalling FingertipsR package and it hasn't made any difference

Below is a copy of the script which I've been using:

remotes::install_github("rOpenSci/fingertipsR",
build_vignettes = TRUE,
dependencies = "suggests")
remotes::install_github("PublicHealthEngland/fingertipscharts",
build_vignettes = TRUE)
library(tidyverse)
library(fingertipsR)
library(fingertipscharts)
indicator <- select_indicators()

I've also tried using 'indicators <- indicators()' but that brings the same result also.

Any advice would be greatly appreciate,
Thanks

@sebastian-fox
Copy link
Contributor

Hi,
Thanks for getting in touch.
For info, this is a fingertipsR issue, not a fingertipscharts one.

I'm not sure why this can be happening if it worked one day but not the next.

Sometimes the API goes down temporarily, so it might start working for you if you try again after some time.
Otherwise, if you are trying from a workplace, it's possible your IT might have changed firewall settings without you realising.

Also, for info, the recommended way of installing the package is documented in the README, which you can see when you scroll down on this page

I hope that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants