From 79fc7dc89defdae728eb41390deabb8e3705fdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 7 Sep 2023 15:13:10 +0000 Subject: [PATCH] Advent22 axios timeout --- ui/src/plugins/advent22.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/plugins/advent22.ts b/ui/src/plugins/advent22.ts index 9ba96d0..3d30743 100644 --- a/ui/src/plugins/advent22.ts +++ b/ui/src/plugins/advent22.ts @@ -6,7 +6,9 @@ export class Advent22 { private api_auth = { username: "", password: "" }; public constructor() { - this.axios = axios.create(); + this.axios = axios.create({ + timeout: 10000, + }); } private get api_baseurl(): string {