Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-1266

Notifications page shows "TypeError" - "i is undefined" when logged in as guest

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      Description of the problem:

      Installed Orchestrator via Helm chart - (1.0.0-rc.2). When browsing to the backstage (rhdh) page, logging is as a guest, and clicking "Notifications", this error appears. I have not yet installed and workflows, although I still think this error should be handled in a better manner (if that is the issue). Update: Occurs even with all workflows installed

      How reproducible:

      100%

      Version

      NAME                    NAMESPACE               REVISION        UPDATED                                 STATUS          CHART                           APP VERSION
      
      orchestrator            sonataflow-infra        1               2024-04-22 23:09:10.488878154 +0300 IDT deployed        orchestrator-1.0.0-rc.2         0.0.1       
      orchestrator-gitops     orchestrator-gitops     1               2024-04-22 22:19:43.232910492 +0300 IDT deployed        gitops-operator-0.4.3           v2.4.11     
      orchestrator-pipelines  orchestrator-gitops     1               2024-04-22 22:18:16.453161585 +0300 IDT deployed        pipelines-operator-0.1.0        v2.4.11     
      sonataflow-psql         sonataflow-infra        1               2024-04-22 23:02:20.222051273 +0300 IDT deployed        postgresql-12.12.10             15.4.0   
       

      Steps to reproduce:

      1. Deploy orchestrator via helm using chart version 1.0.0-rc.2

      2. Browse to RHDH web ui in console and login as guest

      3. Click "Notifications"

      Actual results:

      Page errors

      ErrorTypeError
      Messagei is undefined
      Stack TraceCu@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/api/scalprum/janus-idp.backstage-plugin-notifications/static/4182.233675b9.chunk.js:2:234448
      Fi@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:14:19494
      oa@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:16:43763
      ra@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:16:39560
      Jc@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:16:39491
      ml@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:16:39348
      iu@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:16:35766
      bs@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:16:34722
      Ln@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:24:1615
      Gn@https://backstage-backstage-rhdh-operator.apps.ocp-edge-cluster-assisted-0.qe.lab.redhat.com/static/3144.594b5f1d.chunk.js:24:2007
       

      Backstage pod shows

      2024-04-22T21:23:40.703Z rootHttpRouter error Request failed with status 500 user 'default/guest' does not exist type=errorHandler stack=Error: user 'default/guest' does not exist
      
          at /opt/app-root/src/dynamic-plugins-root/redhat-plugin-notifications-backend-dynamic-1.0.0-rc.2-redhat-51359/dist/cjs/plugin-b5e18be7.cjs.js:832:13
      
          at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      
          at async getNotificationsCount (/opt/app-root/src/dynamic-plugins-root/redhat-plugin-notifications-backend-dynamic-1.0.0-rc.2-redhat-51359/dist/cjs/plugin-b5e18be7.cjs.js:709:22)
      
          at async OpenAPIBackend.handleRequest (/opt/app-root/src/dynamic-plugins-root/redhat-plugin-notifications-backend-dynamic-1.0.0-rc.2-redhat-51359/node_modules/openapi-backend/backend.js:217:26)
      
      2024-04-22T21:23:40.704Z rootHttpRouter info ::ffff:10.130.0.2 - - [22/Apr/2024:21:23:40 +0000] "GET /api/notifications/notifications/count?messageScope=user&read=false HTTP/1.1" 500 207 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0" type=incomingRequest
      
      2024-04-22T21:23:40.866Z rootHttpRouter info ::1 - - [22/Apr/2024:21:23:40 +0000] "GET /api/catalog/entities/by-name/user/default/guest HTTP/1.1" 404 219 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" type=incomingRequest
      
      2024-04-22T21:23:40.867Z rootHttpRouter error Request failed with status 500 user 'default/guest' does not exist type=errorHandler stack=Error: user 'default/guest' does not exist
      
          at /opt/app-root/src/dynamic-plugins-root/redhat-plugin-notifications-backend-dynamic-1.0.0-rc.2-redhat-51359/dist/cjs/plugin-b5e18be7.cjs.js:832:13
      
          at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      
          at async getNotifications (/opt/app-root/src/dynamic-plugins-root/redhat-plugin-notifications-backend-dynamic-1.0.0-rc.2-redhat-51359/dist/cjs/plugin-b5e18be7.cjs.js:667:22)
      
          at async OpenAPIBackend.handleRequest (/opt/app-root/src/dynamic-plugins-root/redhat-plugin-notifications-backend-dynamic-1.0.0-rc.2-redhat-51359/node_modules/openapi-backend/backend.js:217:26)
      
      2024-04-22T21:23:40.868Z rootHttpRouter info ::ffff:10.130.0.2 - - [22/Apr/2024:21:23:40 +0000] "GET /api/notifications/notifications?pageSize=5&pageNumber=1&createdAfter=2024-04-15T21%3A23%3A40.816Z&messageScope=user&read=false HTTP/1.1" 500 267 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0" type=incomingRequest
      
      2024-04-22T21:23:40.919Z orchestrator info task__Orchestrator__WorkflowCacheService updated the workflow definition ID cache to: empty cache  
      2024-04-22T21:23:45.412Z rootHttpRouter info ::ffff:10.128.0.2 - - [22/Apr/2024:21:23:45 +0000] "GET /healthcheck HTTP/1.1" 200 15 "-" "kube-probe/1.28" type=incomingRequest
      
      2024-04-22T21:23:45.413Z rootHttpRouter info ::ffff:10.128.0.2 - - [22/Apr/2024:21:23:45 +0000] "GET /healthcheck HTTP/1.1" 200 15 "-" "kube-probe/1.28" type=incomingRequest
      
      
       

       

      Expected results:

      No error, or some clearer error if I (The user) am doing something incorrectly

            mlibra@redhat.com Marek Libra
            chadcrum Chad Crum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: