AUR5008
Error Message
AUR5008: Invalid retry strategy: {{strategy}}
Description
This error occurs when specifying an unsupported retry strategy. The fetch client only supports specific retry strategies like 'linear' and 'exponential'.
Solution
// ❌ Wrong: Invalid strategy
client.configure(config => {
return config.withRetry(3, 1000, 'invalid'); // Unsupported strategy
});
// ✅ Correct: Use supported strategies
client.configure(config => {
return config.withRetry(3, 1000, 'linear');
// or
// return config.withRetry(3, 2000, 'exponential');
});
Last updated
Was this helpful?