Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-08-06 17:51:37 +0300
committerJoas Schilling <coding@schilljs.com>2018-08-06 17:51:37 +0300
commitf84dc9c94833134005fdf344fa7ef46e2f9555a8 (patch)
tree13e67f92f7003bbc39a8a3c6eff63794832ccc29 /src/App.vue
parentc482cbb84790693bfc96cd1f1833cd5e95ea6100 (diff)
Fix "Cannot read property 'status' of undefined"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue
index c430998..e46a283 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -95,7 +95,10 @@
}
})
.catch(err => {
- if (err.response.status === 503) {
+ if (!err.response) {
+ console.debug('No response received, retrying');
+ return;
+ } else if (err.response.status === 503) {
// 503 - Maintenance mode
console.debug('Shutting down notifications: instance is in maintenance mode.');
} else if (err.response.status === 404) {