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

new error in loadByProduct() #121

Open
kellyaho opened this issue Nov 15, 2021 · 3 comments
Open

new error in loadByProduct() #121

kellyaho opened this issue Nov 15, 2021 · 3 comments
Labels

Comments

@kellyaho
Copy link

Function
Which of the functions in the neonUtilities package is this bug found in?
loadByProduct()

Describe the bug
A clear and concise description of what the bug is.
Error: lexical error: invalid char in json text.
<html lang="en"
(right here) ------^

To Reproduce
What function inputs revealed the bug?
loadByProduct(dpID = "DP1.20190.001", site = "POSE", check.size = FALSE)

Expected behavior
A clear and concise description of what you expected to happen.
Normally, my data loads as is expected.

System (please complete the following information):

  • OS: [e.g. iOS] iOS
  • OS Version: [e.g. 22] 11.6.1
  • R Version: [e.g. 3.5.1] 4.1.0

Additional context
Add any other context about the problem here.
This issue just started in code that I have been successfully using for a couple of months. I've tried updating neonUtilities from both CRAN and Github, and get the same error for both. I am using jsonlite 1.7.2.

@kellyaho kellyaho added the bug label Nov 15, 2021
@cklunch
Copy link
Collaborator

cklunch commented Nov 16, 2021

@kellyaho I haven't been able to replicate this error. Let me know if you're still seeing it today, and let's troubleshoot offline.

@cklunch
Copy link
Collaborator

cklunch commented Nov 16, 2021

We determined this was due to some sort of firewall/security issue on the local machine. Leaving this issue open for now in case other users run into the same problem, but it is not a neonUtilities code problem. If users run into this, please get in touch with NEON, either by commenting on this issue or through the Contact Us page.

@BrennanTHays
Copy link

I also had a similar issue today. I've run this code with no issue for a roughly a year and it suddenly threw out an error.

Code:
SRER.site.data <- loadByProduct(dpID = "DP1.10022.001",
site = c( "SRER"),
startdate = "2017-05",
enddate = "2019-09")

Error message: Error in getZipUrls(month.urls, avg = avg, package = package, dpID = dpID, : No files found. This indicates either your internet connection failed, or the API is temporarily unavailable, or the data available for DP1.10022.001 are all hosted elsewhere. Check the data portal data.neonscience.org for outage alerts, and check the DP1.10022.001 data download page for external links.

OS: macOS Big Sur version 11.1

After seeing the post here about it being a local issue I threw the same code over to a colleague and had them run it. It worked fine for them so I realized it was a local issue. Updating my Rstudio fixed it. Not sure exactly what that solved, but just throwing it up here in case anyone runs into a similar issue.

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

No branches or pull requests

3 participants