'Got statusCode ' + res.statusCode + ' but cannot resolve next location from headers'