stattleship-r
stattleship-r copied to clipboard
Need to Handle HTTP Status: 404 and 403 (Not OK 200)
People report getting:
ss_get_result(sport=sport, league=league, ep=ep, query=q_body, walk=TRUE)
[1] "Making initial API request"
Error: parse error: premature EOF
(right here) ------^
when the request is not authorized or invalid.
Should check the HTTP status codes, handle and/or report message appropriately.