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

cfbd_game_weather #83

Open
ccaudill11 opened this issue Oct 26, 2022 · 5 comments
Open

cfbd_game_weather #83

ccaudill11 opened this issue Oct 26, 2022 · 5 comments

Comments

@ccaudill11
Copy link

Describe the bug
When using the cfbd_game_weather function I keep getting a 401 Error code. I have tried changing my input and have restarted my computer and attempted to do the function with different internet connections to no avail. All other of my functions seem to be working fine. My CFBFastR is up to date.

To Reproduce
Steps to reproduce the behavior:

  • Input values for cfbd_game_weather function and run code

Expected behavior
I expected a data frame with data from the function

Screenshots
image

Desktop (please complete the following information):

  • OS- Windows
  • Browser: Microsoft Edge

Smartphone (please complete the following information):

  • NA

Additional context

I am relatively new to RStudio and CFBFastR, so it is likely that I am making a dumb mistake, however, I am unable to figure out what.

@akeaswaran
Copy link
Collaborator

Have you added an API key for collegefootballdata.com to your environment? (instructions here: https://cfbfastr.sportsdataverse.org/)

Getting an HTTP 401 back from the service means your request is unauthorized, so it seems like adding an API key here should solve the issue.

@ccaudill11
Copy link
Author

ccaudill11 commented Oct 26, 2022 via email

@Kazink36
Copy link
Collaborator

CFBD’s weather end point is for Patreon subscribers only, it only takes $1 to get access.

I’ll update our docs to clarify the issue

https://www.patreon.com/bePatron?u=23067681

@ccaudill11
Copy link
Author

ccaudill11 commented Oct 26, 2022 via email

@Kazink36
Copy link
Collaborator

From CFBD’s owner: “As long as you register an API key through the main website using your Patreon email, your benefits should sync up within about 10 minutes.”

So you shouldn’t have to do anything but wait a few minutes

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

3 participants