Skip to content

jsonlite throws SSL connect error through firewall #418

@ajstamm

Description

@ajstamm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions