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

Download data from rnoaa (error in API key) #390

Closed
SaraAV opened this issue May 13, 2021 · 5 comments
Closed

Download data from rnoaa (error in API key) #390

SaraAV opened this issue May 13, 2021 · 5 comments
Labels
Milestone

Comments

@SaraAV
Copy link

SaraAV commented May 13, 2021

Session Info
@SaraAV
Copy link
Author

SaraAV commented May 13, 2021

I am trying to download data from NOAA using the rnoaa package of R.

I am using ncdc_stations function to download some data:

siteNumber <- "GHCND:USC00023505"
metadata_station <- ncdc_stations(datasetid='GHCND', stationid=siteNumber)

However, I am getting the following error:

Error in check_response(ncdc_GET(path, args, token, ...)) :
x$response_headers$content-type == "application/json;charset=UTF-8" is not TRUE

Someone knows how to solve this issue?

@sckott sckott added the bug label May 13, 2021
@sckott sckott added this to the v1.4 milestone May 13, 2021
@sckott
Copy link
Contributor

sckott commented May 13, 2021

thanks! having a look

@sckott sckott closed this as completed in 747b641 May 13, 2021
@sckott
Copy link
Contributor

sckott commented May 13, 2021

@SaraAV Please try again after reinstalling like remotes::install_github("ropensci/rnoaa")

@fbdelac
Copy link

fbdelac commented May 14, 2021

This has been driving me crazy. Thanks for the fix it worked.

@SaraAV
Copy link
Author

SaraAV commented May 14, 2021

Thanks sckott, it works!

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