We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd2b727 commit 40bc2a9Copy full SHA for 40bc2a9
components/spotify/spotify.app.mjs
@@ -281,11 +281,7 @@ export default {
281
throw new Error("Error response exported in the \"response\" object");
282
}
283
284
- // if rate limit is exceeded, Retry-After will contain the # of seconds
285
- // to wait before retrying
286
- const delay = err?.headers?.["Retry-After"]
287
- ? err.headers["Retry-After"] * 1000
288
- : (retries * 3000);
+ const delay = retries * 5000;
289
await pause(delay);
290
return this.retry($, config, retries + 1);
291
0 commit comments