Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1299

Management Console crashing when not getting GraphQL response

    XMLWordPrintable

    Details

    • Sprint:
      2020 Week 13-15 (from Mar 23)
    • Steps to Reproduce:
      1. start the app by 'yarn start' only
      2. navigate to localhost:8080
      3. See the blank page (sometimes the actual page flickers there for a while, but ends up in blank anyway)

      Description

      When the management-console app is started without the dev:server, it crashes and only a blank page is shown.

      It should be able to handle unavailability of the server and inform the user.

      Issue details from the Web Console in browser:

      TypeError: getQuery.data is undefined
      Dashboard.tsx:65:5
          Dashboard Dashboard.tsx:65
          React 10
          performSyncWorkOnRoot self-hosted:926
          flushSyncCallbackQueueImpl React
          unstable_runWithPriority scheduler.development.js:697
          React 5
          dispatchAction self-hosted:981
          error react-hooks.esm.js:242
          notifySubscription Observable.js:140
          onNotify Observable.js:179
          error Observable.js:240
          iterateObserversSafely bundle.esm.js:435
          forEach self-hosted:235
          iterateObserversSafely bundle.esm.js:435
          onError bundle.esm.js:386
          invoke bundle.esm.js:1209
          queryListenerForObserver bundle.esm.js:1247
          broadcastQueries bundle.esm.js:1559
          forEach self-hosted:3442
          broadcastQueries bundle.esm.js:1557
          forEach self-hosted:1204
          broadcastQueries bundle.esm.js:1555
          networkResult bundle.esm.js:1161
      
      The above error occurred in the <Dashboard> component:
          in Dashboard (created by Context.Consumer)
          in Route (created by BaseLayout)
          in Switch (created by BaseLayout)
          in Router (created by BrowserRouter)
          in BrowserRouter (created by BaseLayout)
          in BaseLayout
          in ApolloProvider
      
      Consider adding an error boundary to your tree to customize error handling behavior.
      Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
      

        Attachments

          Activity

            People

            Assignee:
            sasriniv Saravana Srinivasan
            Reporter:
            jstastny Jan Stastny
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: