stattleship-r icon indicating copy to clipboard operation
stattleship-r copied to clipboard

Need to Handle HTTP Status: 404 and 403 (Not OK 200)

Open dthyresson opened this issue 7 years ago • 0 comments

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.

dthyresson avatar Nov 15 '16 20:11 dthyresson