Incorrect logged URL during API failure

If there’s a failure in processing user API, the requested URL is logged in the following format:

hostname//path

There is an extra / in the URL between hostname and path and there’s missing protocol.