Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2690

DevWorkspace Dashboard doesn't handle 401 server error after user session is expired

XMLWordPrintable

    • False
    • False
    • Hide
      = Empty page after the user session expires

      Currently, a {prod-short} instance might display an empty page after the user session expires. There is currently no workaround for this issue.
      Show
      = Empty page after the user session expires Currently, a {prod-short} instance might display an empty page after the user session expires. There is currently no workaround for this issue.
    • Documented as Known Issue

      CRW 2.15.0.ER-01-27 instance installed from 'tech-preview' operator channel with DevWorkspace engine enabled by default, returned empty page after user session is expired (401) inside CRW application.

      Keycloak initialization failed.  Error: Failed to get response to API endpoint: 
      Error: Request to "/api/user" failed:Error: Request failed with status code 401
          at f.start (client.f72c867f5e8050b6a16e.js:1:4048)
          at async client.f72c867f5e8050b6a16e.js:1:113161
      ...
      TypeError: Cannot read properties of undefined (reading 'email')
      

      Metadata:

      • codeready-workspaces-operator-bundle-container-2.15-248
      • Index image v4.9: registry-proxy.engineering.redhat.com/rh-osbs/iib:166463

      CRW instance:

      OCP version: 4.9.

       

      Refresh of browser's tab didn't help.

      It hadn't been reproduced in che-server mode when DW was disabled, because in-built keycloak had redirected to OCP OAuth page.

        1. CRW-che-server-mode.png
          351 kB
          Dmytro Nochevnov
        2. empty-screen-ds.3.0.0.rc-06-03-console.png
          152 kB
          Dmytro Nochevnov
        3. empty-screen-ds.3.0.0.rc-06-03-networking.png
          170 kB
          Dmytro Nochevnov
        4. Screenshot from 2022-01-28 17-06-25.png
          221 kB
          Dmytro Nochevnov

              oorel Oleksii Orel
              dnochevn Dmytro Nochevnov
              Fabrice Flore-Thébault Fabrice Flore-Thébault
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: