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

Sotkanet connection not working #1

Closed
arhot opened this issue Oct 1, 2015 · 1 comment
Closed

Sotkanet connection not working #1

arhot opened this issue Oct 1, 2015 · 1 comment

Comments

@arhot
Copy link

arhot commented Oct 1, 2015

Retrieving indicators has stopped working since early September. Below is the error message for the tutorial example. I tried both release and developer versions. I asked the persons responsible for the API at THL and they said they have been changed from http to https and guessed that might be the issue, the API is up and running anyway.

dat <- GetDataSotkanet(indicators = 10013, years = 1990:2012,

  •                    genders = c('female', 'male', 'total'), 
    
  •                    region.category = "EUROOPPA", 
    
  •                    region = "Suomi")
    
    Retrieving indicator 10013
    Error in [.data.frame(SotkanetIndicators(indicator), , c("indicator", :
    undefined columns selected
    In addition: Warning messages:
    1: In sotkanet.json_query(url) :
    Sotkanet URL https://www.sotkanet.fi/rest/1.1/indicators does not exist - returning NULL!
    2: In sotkanet.json_query(url) :
    Sotkanet URL https://www.sotkanet.fi/rest/1.1/indicators/10013 does not exist - returning NULL!
@antagomir
Copy link
Member

Tnx for report! It works now again after changing the base url to http. I have also submitted an update to CRAN but this comes with delay. For immediate access to the up-to-date version you can install the latest one from github with (in R): library(devtools); devtools::install_github("ropengov/sotkanet")

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