From 317bf4f7cb94549a1871a38cdf5b9a3f93739b12 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sat, 22 Jul 2017 16:21:50 -0500 Subject: [PATCH] Revert "retry on 500 (#1709)" This reverts commit 57b69803132355b506f9919f37a55915ccdf86d3. --- src/client/rest/handlers/RequestHandler.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/client/rest/handlers/RequestHandler.js b/src/client/rest/handlers/RequestHandler.js index d89c5b4a0..e5dfcebe9 100644 --- a/src/client/rest/handlers/RequestHandler.js +++ b/src/client/rest/handlers/RequestHandler.js @@ -45,9 +45,6 @@ class RequestHandler { if (err.status === 429) { this.queue.unshift(item); finish(Number(res.headers['retry-after']) + this.client.options.restTimeOffset); - } else if (err.status === 500) { - this.queue.unshift(item); - finish(1e3 + this.client.options.restTimeOffset); } else { item.reject(err.status >= 400 && err.status < 500 ? new DiscordAPIError(res.request.path, res.body) : err); finish();