AUR5004

Error Message

AUR5004: Only one RetryInterceptor is allowed.

Description

This error occurs when attempting to register more than one RetryInterceptor on the same HttpClient instance. The fetch client only supports a single retry interceptor to avoid conflicting retry logic.

Solution

// ❌ Wrong: Multiple retry interceptors
client.configure(config => {
  return config
    .withRetry(3)
    .withRetry(5); // This will throw AUR5004
});

// ✅ Correct: Single retry interceptor
client.configure(config => {
  return config.withRetry(3, 1000);
});

Last updated

Was this helpful?