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

jsonlite throws SSL connect error through firewall #418

Open
ajstamm opened this issue May 3, 2023 · 0 comments
Open

jsonlite throws SSL connect error through firewall #418

ajstamm opened this issue May 3, 2023 · 0 comments

Comments

@ajstamm
Copy link

ajstamm commented May 3, 2023

When I run this code (adapted from MODISTools package) from home, it works fine.

my_url <- "https://modis.ornl.gov/rst/api/v1//MOD13Q1/bands"
my_bands <- jsonlite::fromJSON(my_url)$band

When I run the same code from my work computer (with a firewall), I need to modify the code like this, so that I read the file to my computer first, then interpret through JSON. This works fine if I'm calling JSON directly, but not if I'm using pre-made functions.

my_file <- readr::read_file(my_url)
my_bands <- jsonlite::fromJSON(my_file)$band

I am using R 4.3.0 and jsonlite 1.8.4.

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

1 participant