The code at https://github.com/Microsoft/vsts-node-api/blob/master/api/VsoClient.ts#L189 caches the response even in case of failures. So if a call like getBuild fails with timeout error, retrying the call fails with the same error.