diff --git a/public/app/core/services/backend_srv.js b/public/app/core/services/backend_srv.js index 5ba40dfc86b..3c96e3c69b4 100644 --- a/public/app/core/services/backend_srv.js +++ b/public/app/core/services/backend_srv.js @@ -131,7 +131,9 @@ function (angular, _, coreModule, config) { if (requestIsLocal && firstAttempt && err.status === 401) { return self.loginPing().then(function() { options.retry = 1; - canceler.resolve(); + if (canceler) { + canceler.resolve(); + } return self.datasourceRequest(options); }); }