-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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")))Metadata
Metadata
Assignees
Labels
No labels