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

Problems accessing data from R --You have not access to ec.europe.eu. #210

Closed
diegomallada opened this issue Apr 5, 2021 · 7 comments
Closed

Comments

@diegomallada
Copy link

Hi,

Im trying several datasets (it worked perfectly last week) and get this error
You have no access to ec.europe.eu.
Please check your connection and/or review your proxy settings

This is the line code

library(eurostat)
datoss <- get_eurostat("rd_e_gerdtot", time_format = "date")

@antagomir
Copy link
Member

Works for me. Can you confirm the package version numbers you're using? Or is this a temporary problem.

@antaldaniel
Copy link
Contributor

I cannot put my finger on the problem, but I think that this has something to do with the user's R session and how it works with RCurl. I was trying to figure out myself similar problems, and realized that re-starting R (at least often) solves the problem.

@antagomir
Copy link
Member

This problem may be out of scope to solve in eurostat package. I suggest to close this issue unless we have a solution in a horizon.

@pitkant
Copy link
Member

pitkant commented Jun 29, 2022

This problem may be out of scope to solve in eurostat package. I suggest to close this issue unless we have a solution in a horizon.

In my opinion, since "You have no access to ec.europe.eu" error messages seems to be some of the most prevalent problems when using the package, we should maybe at least consider rewording the error message / adding some kind of a troubleshooting guide to be more helpful.

@antagomir
Copy link
Member

Yes, that's a good minimum solution if we cannot provide other.

@djhurio
Copy link
Contributor

djhurio commented Jul 20, 2022

Maybe I have a similar situation. In my environment I have defined HTTPS_PROXY variable, but I do not have HTTP_PROXY. So R can get data through HTTPS but not through HTTP. In general this is OK for the eurostat package as anyway all data transfer is done using the HTTPS. However get_eurostat is using check_access_to_data() to check if internet is available. However, for testing it check_access_to_data() is trying file transfer through HTTP (see the line 17,

http_url <- "http://ec.europa.eu/eurostat/cache/GISCO/distribution/v2/nuts/geojson/NUTS_RG_60M_2006_4326_LEVL_0.geojson"
).

So, in my environment check_access_to_data() is failing as R does not have internet access through HTTP. And it stops the execution of the get_eurostat. However, get_eurostat should be working as R does have internet access through HTTPS.

I am considering to submit pull request by amending the code for the check_access_to_data() by adding s after the http. ;)

@antagomir
Copy link
Member

Closed via #241 - testing & feedback welcome. Thanks!

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

5 participants