clarity-h2020 / scenario-analysis

Customised versions of the CRISMA Scenario Comparison and Analysis and the Multi-Criteria-Analysis and Decision Support Functional Building Blocks for integration within the CLARITY CSIS.
https://clarity-h2020.github.io/scenario-analysis/index.html
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Proper handling of EMIKAT Authorization errors #23

Closed p-a-s-c-a-l closed 4 years ago

p-a-s-c-a-l commented 4 years ago

URL -> https://csis.myclimateservice.eu/study/169/step/4648/view/scenario-analysis Date & Time -> 2020-06-23 8:50:00 Browser Version and Operating System -> Chrome Version 83.0.4103.61 (Official Build) (64-bit) / OS - Linux 4.14.0-3-amd64 clarity-h2020/csis-technical-validation#1 SMP Debian 4.14.17-1 (2018-02-14) x86_64 GNU/Linux

The Scenario Analysis tab presents an error and no action can be performed:

{"data":"<html><head><title>Apache Tomcat/6.0.20 - Error report</title><style><!--H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} 
H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-
size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-
serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : 
black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - 
Unauthorized</h1><HR size=\"1\" noshade=\"noshade\"><p><b>type</b> Status 
report</p><p><b>message</b> <u>Unauthorized</u></p><p><b>description</b> 
<u>This request requires HTTP authentication (Unauthorized).</u></p><HR size=\"1\" 
noshade=\"noshade\"><h3>Apache Tomcat/6.0.20</h3></body>
</html>","status":401,"config":{"method":"GET","transformRequest":
[null],"transformResponse":[null],"headers":{"Authorization":"Basic 
dW5kZWZpbmVk","Accept":"application/json, text/plain, */*"},"url":"https://service.emikat.at
/EmiKatTst/api/scenarios/3493/feature/view.2994/table
/data","withCredentials":false},"statusText":"Unauthorized"}

image

Originally posted by @ghilbrae in https://github.com/clarity-h2020/csis-technical-validation/issues/54#issuecomment-647947355