Wrong request url

The code was calling the right url in the console.log, but the wrong url in the actual call.