konflux-ci / konflux-ui

Apache License 2.0
2 stars 4 forks source link

Unexpected Application Error! result.items is null #16

Open cmoulliard opened 6 hours ago

cmoulliard commented 6 hours ago

Issue

When we launch locally yarnlocalhost:8080, then we got this error within the UI

Unexpected Application Error!
result.items is null

39798/k8sListResource/<@https://localhost:8080/main.0b478b54a061957d7ca2.js:8887:13

💿 Hey developer 👋

You can provide a way better UX than this when your app throws errors by providing your own ErrorBoundary or errorElement prop on your route.
Screenshot 2024-11-01 at 10 41 43

Yarn start log

~/code/konflux/konflux-ui on main
❯ yarn start
yarn run v1.22.22
$ dotenvx run -- webpack server --open -c ./webpack.dev.config.js
[dotenvx@1.7.0] injecting env (4) from .env
[dotenvx@1.7.0] injecting env (0) from .env
<i> [webpack-dev-server] Generating SSL certificate...
<i> [webpack-dev-server] SSL certificate: /Users/cmoullia/code/konflux/konflux-ui/node_modules/.cache/webpack-dev-server/server.pem
<i> [webpack-dev-server] [HPM] Proxy created: (path) => path.includes('/oauth2/')  -> https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/
<i> [webpack-dev-server] [HPM] Proxy created: (path) => path.includes('/api/k8s/registration')  -> https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/
<i> [webpack-dev-server] [HPM] Proxy created: (path) => path.includes('/api/k8s')  -> https://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/
<i> [webpack-dev-server] [HPM] Proxy created: (path) => path.includes('/wss/k8s')  -> wss://konflux-ui.apps.stone-stg-rh01.l2vh.p1.openshiftapps.com/
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: https://localhost:8080/
<i> [webpack-dev-server] On Your Network (IPv4): https://192.168.1.62:8080/
<i> [webpack-dev-server] On Your Network (IPv6): https://[fe80::1]:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/Users/cmoullia/code/konflux/konflux-ui/public' directory
<i> [webpack-dev-server] 404s will fallback to '/index.html'
assets by path *.svg 70.8 KiB
  asset f4ee0d150ae286aa4c9f.svg 38.1 KiB [emitted] [immutable] [from: src/assets/overview/overview-banner.svg] (auxiliary name: main)
  asset 1b97f096290b78c4435b.svg 4.69 KiB [emitted] [immutable] [from: src/assets/konflux.svg] (auxiliary name: main)
  asset 1f98407e49c040abb240.svg 3.44 KiB [emitted] [immutable] [from: src/assets/app-thumbnails/Asset 10.svg] (auxiliary name: main)
  + 16 assets
assets by path *.woff2 500 KiB
  asset 813182e673c38ef5ee4b.woff2 40.6 KiB [emitted] [immutable] [from: node_modules/@patternfly/react-core/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplayVF-Italic.woff2] (auxiliary name: vendor) (auxiliary id hint: vendor)
  asset 078865af129336cde269.woff2 40.2 KiB [emitted] [immutable] [from: node_modules/@patternfly/react-core/dist/styles/assets/fonts/RedHatText/RedHatTextVF-Italic.woff2] (auxiliary name: vendor) (auxiliary id hint: vendor)
  asset 18ca482120faaa701d8b.woff2 38.8 KiB [emitted] [immutable] [from: node_modules/@patternfly/react-core/dist/styles/assets/fonts/RedHatDisplay/RedHatDisplayVF.woff2] (auxiliary name: vendor) (auxiliary id hint: vendor)
  + 14 assets
assets by path *.js 20.7 MiB
  asset vendor.fcc85e234fc95fdbeeab.js 19.3 MiB [emitted] [immutable] (name: vendor) (id hint: vendor)
  asset main.0b478b54a061957d7ca2.js 1.29 MiB [emitted] [immutable] (name: main)
  asset runtime.621d47917fa26aa3a96c.js 108 KiB [emitted] [immutable] (name: runtime)
asset index.html 420 bytes [emitted]
Entrypoint main 20.7 MiB (571 KiB) = runtime.621d47917fa26aa3a96c.js 108 KiB vendor.fcc85e234fc95fdbeeab.js 19.3 MiB main.0b478b54a061957d7ca2.js 1.29 MiB 36 auxiliary assets
orphan modules 2.46 MiB [orphan] 1096 modules
runtime modules 32 KiB 18 modules
javascript modules 7.23 MiB
  modules by path ./node_modules/ 6.79 MiB 1283 modules
  modules by path ./src/ 451 KiB 122 modules
asset modules 1.48 KiB (javascript) 571 KiB (asset)
  modules by path ./src/ 798 bytes (javascript) 70.8 KiB (asset)
    modules by path ./src/assets/app-thumbnails/*.svg 462 bytes (javascript) 20.4 KiB (asset) 11 modules
    modules by path ./src/assets/overview/*.svg 210 bytes (javascript) 42.2 KiB (asset) 5 modules
    modules by path ./src/assets/*.svg 126 bytes (javascript) 8.25 KiB (asset) 3 modules
  modules by path ./node_modules/ 714 bytes (javascript) 500 KiB (asset)
    modules by path ./node_modules/@patternfly/react-core/dist/styles/assets/fonts/RedHatD...(truncated) 252 bytes (javascript) 186 KiB (asset) 6 modules
    modules by path ./node_modules/@patternfly/react-core/dist/styles/assets/fonts/RedH...(truncated) 252 bytes (javascript) 183 KiB (asset) 6 modules
    modules by path ./node_modules/@patternfly/react-core/dist/styles/assets/fonts/RedH...(truncated) 168 bytes (javascript) 113 KiB (asset) 4 modules
    ./node_modules/@patternfly/react-core/dist/styles/assets/pficon/pf-v...(truncated) 42 bytes (javascript) 17.6 KiB (asset) [built] [code generated]
webpack 5.93.0 compiled successfully in 3218 ms
No errors found.
(node:10578) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

@sahil143

ishk99 commented 6 hours ago

Hey can you assign the issue to me @cmoulliard