Remove user credentials in the request URL and raise errors when requests are unsuccessful