refactor request to request_url
add test for limit reached on github-like servers