sportsdataverse / cfbfastR

An R package to quickly obtain clean and tidy college football play by play data
https://cfbfastR.sportsdataverse.org
Other
74 stars 8 forks source link

cfbd_game_weather #83

Open ccaudill11 opened 1 year ago

ccaudill11 commented 1 year ago

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:

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

Screenshots

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

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 commented 1 year ago

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 commented 1 year ago

I am 99% sure that I do, I can use all other CFBD functions as well. I included a screenshot with this email. Thanks for your assistance!

@.***

From: Akshay Easwaran @.> Sent: Wednesday, October 26, 2022 10:00 AM To: sportsdataverse/cfbfastR @.> Cc: ccaudill11 @.>; Author @.> Subject: Re: [sportsdataverse/cfbfastR] cfbd_game_weather (Issue #83)

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 unauthorizedhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401, so it seems like adding an API key here should solve the issue.

— Reply to this email directly, view it on GitHubhttps://github.com/sportsdataverse/cfbfastR/issues/83#issuecomment-1292097674, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2IJYGT4GO5KTKTC4JGBQYTWFE2OFANCNFSM6AAAAAARO7YSLM. You are receiving this because you authored the thread.Message ID: @.**@.>>

Kazink36 commented 1 year ago

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 commented 1 year ago

Thanks for the clarification, so once I subscribe to the Patreon will the function just begin to work, or is there anything I need to do to connect the account?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Jared Lee @.> Sent: Wednesday, October 26, 2022 11:25:50 AM To: sportsdataverse/cfbfastR @.> Cc: ccaudill11 @.>; Author @.> Subject: Re: [sportsdataverse/cfbfastR] cfbd_game_weather (Issue #83)

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

— Reply to this email directly, view it on GitHubhttps://github.com/sportsdataverse/cfbfastR/issues/83#issuecomment-1292221300, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2IJYGQNLDFOQIXEANGDF2TWFFEP5ANCNFSM6AAAAAARO7YSLM. You are receiving this because you authored the thread.Message ID: @.***>

Kazink36 commented 1 year ago

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