From 2db816cd712a52061fff4ba2e76e7025167a07d7 Mon Sep 17 00:00:00 2001 From: Daniel_Stoxreiter Date: Mon, 3 Oct 2022 11:46:21 +0200 Subject: [PATCH] removed timeout from ajax req; added err msg --- .gitignore | 3 ++- README.md | 4 ++-- app/templates/index.html | 10 +++++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index dd2db4f..acc8c92 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ test.json /werke __pycache__ .vscode -/tmp_to_collate \ No newline at end of file +/tmp_to_collate +index.html \ No newline at end of file diff --git a/README.md b/README.md index 7762b5c..9f38f8b 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,10 @@ ### build & run * `docker build -t frd-int .` -* `docker run -d --name frd-int -p 80:80 frd-int` +* `docker run -d --name frd-int -p 8020:8020 frd-int` or just run `./build_and_run.sh` ### use published image -docker run -d --name frd-int -p 80:80 ghcr.io/freud-digital/frd-interface:latest +docker run -d --name frd-int -p 8020:8020 ghcr.io/freud-digital/frd-interface:latest diff --git a/app/templates/index.html b/app/templates/index.html index cbf03ce..9ae23e5 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -130,7 +130,15 @@ }); }); }, - timeout: 60000 + // timeout: 60000, + statusCode: { + 404: function() { + console.log( "server request resulted in 404 error" ); + }, + 500: function() { + console.log( "server request resulted in 500 error" ); + } + } }); $.ajax({ type: "POST",