Fixed URL wrapped in RequestError

Incorrect URLs were wrapped in RequestError when making HTTP requests. Now corrected it