AUR5005

Error Message

AUR5005: The retry interceptor must be the last interceptor defined.

Description

This error occurs when the RetryInterceptor is not the last interceptor in the interceptor chain. The retry interceptor must be last to ensure it can properly retry requests that fail in other interceptors.

Solution

// ❌ Wrong: Retry interceptor not last
client.configure(config => {
  return config
    .withRetry(3)
    .withInterceptor(loggingInterceptor); // Added after retry
});

// ✅ Correct: Retry interceptor last
client.configure(config => {
  return config
    .withInterceptor(loggingInterceptor)
    .withRetry(3); // Retry interceptor is last
});

Last updated

Was this helpful?