kohrar commented on issue #6731:
URL: https://github.com/apache/cloudstack/issues/6731#issuecomment-1262871501

   I think there's something in the UI code that's requesting for 
`listResourceIcon` _after_ the logout occurs in some instances which triggers 
this issue.
   
   After navigating to the profile page and logging out, I see that the browser 
sent the following request, only to get a 401 Unauthorized reply, which then 
causes an unhandled JS exception which then breaks the UI.
   
   ```
   GET 
/client/api/?resourceids=a03c9ece-9b15-4638-a1d4-ee9e05edf81f&resourcetype=domain&command=listResourceIcon&response=json
 HTTP/1.1
   ```
   
   JS Console shows:
   ```
          Uncaught (in promise) Error: Request failed with status code 401
       at e.exports (createError.js:16:15)
       at e.exports (settle.js:17:12)
       at XMLHttpRequest.c (xhr.js:54:7)
   ```
   
   Subsequent login attempts just error out immediately, without any HTTP 
requests ever being made.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to