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

N.C. State breaks cbd_torvik_game_prediction #17

Open
aburkard opened this issue Dec 18, 2024 · 1 comment
Open

N.C. State breaks cbd_torvik_game_prediction #17

aburkard opened this issue Dec 18, 2024 · 1 comment

Comments

@aburkard
Copy link

aburkard commented Dec 18, 2024

The URL returns a 501 error. It's possible this affects other endpoints as well. N.C. State is the only team I've noticed this issue with. I'm guessing it has something to do with the dots in the name.

Example output:

cbbdata::cbd_torvik_game_prediction("N.C. State", "North Carolina", date= "20181107", location = "N")
Error in open.connection(con, "rb"): cannot open the connection to 'https://www.cbbdata.com/api/torvik/game/prediction?key=API_KEY_WOULD_BE_HERE&team=N.C.%20State&opp=North%20Carolina&date=20181107&location=N'
Traceback:

1. fromJSON(url)
2. parse_and_simplify(txt = txt, simplifyVector = simplifyVector, 
 .     simplifyDataFrame = simplifyDataFrame, simplifyMatrix = simplifyMatrix, 
 .     flatten = flatten, ...)
3. parseJSON(txt, bigint_as_char)
4. parse_con(txt, bigint_as_char)
5. open(con, "rb")
6. open.connection(con, "rb")
7. .handleSimpleError(function (cnd) 
 . {
 .     watcher$capture_plot_and_output()
 .     cnd <- sanitize_call(cnd)
 .     watcher$push(cnd)
 .     switch(on_error, continue = invokeRestart("eval_continue"), 
 .         stop = invokeRestart("eval_stop"), error = invokeRestart("eval_error", 
 .             cnd))
 . }, "cannot open the connection to 'https://www.cbbdata.com/api/torvik/game/prediction?key=API_KEY_WOULD_BE_HERE&team=N.C.%20State&opp=North%20Carolina&date=20181107&location=N'", 
 .     base::quote(open.connection(con, "rb")))
@jacobakaye
Copy link

I'm having the same issue

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

2 participants