Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Manager UI shows runtime error #507

Open
maia-iyer opened this issue Sep 30, 2024 · 0 comments
Open

[Bug] Manager UI shows runtime error #507

maia-iyer opened this issue Sep 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working frontend Tornjak UI (Frontend) manager Tornjak Manager
Milestone

Comments

@maia-iyer
Copy link
Collaborator

maia-iyer commented Sep 30, 2024

Environment:

I deployed Tornjak backend in a local Kind cluster and the Tornjak manager backend is running locally at port 50000
Then I ran:

cd frontend
REACT_APP_API_SERVER_URI=http://localhost:50000/ REACT_APP_TORNJAK_MANAGER=true npm start

To start the frontend with the manager UI.

Error

The UI mostly works, but each time a new page is loaded, I receive this exitable error:

Uncaught runtime errors:
ERROR
error.response is undefined
./src/components/tornjak-api-helpers.tsx/TornjakApi/this.populateLocalTornjakServerInfo/<@http://localhost:3000/static/js/bundle.js:11482:28

Once I X out of this error, the UI works as normal.

Additional Notes:

I also notice the following warnings in the logs:

Compiled with warnings.

[eslint] 
src/tables/clusters-list-table.tsx
  Line 4:8:    'GetApiServerUri' is defined but never used    @typescript-eslint/no-unused-vars
  Line 5:8:    'axios' is defined but never used              @typescript-eslint/no-unused-vars
  Line 13:10:  'showResponseToast' is defined but never used  @typescript-eslint/no-unused-vars

src/tables/entries-list-table.tsx
  Line 3:8:    'GetApiServerUri' is defined but never used    @typescript-eslint/no-unused-vars
  Line 5:8:    'axios' is defined but never used              @typescript-eslint/no-unused-vars
  Line 14:10:  'showResponseToast' is defined but never used  @typescript-eslint/no-unused-vars
  Line 15:8:   'apiEndpoints' is defined but never used       @typescript-eslint/no-unused-vars

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in [eslint] 
src/tables/clusters-list-table.tsx
  Line 4:8:    'GetApiServerUri' is defined but never used    @typescript-eslint/no-unused-vars
  Line 5:8:    'axios' is defined but never used              @typescript-eslint/no-unused-vars
  Line 13:10:  'showResponseToast' is defined but never used  @typescript-eslint/no-unused-vars

src/tables/entries-list-table.tsx
  Line 3:8:    'GetApiServerUri' is defined but never used    @typescript-eslint/no-unused-vars
  Line 5:8:    'axios' is defined but never used              @typescript-eslint/no-unused-vars
  Line 14:10:  'showResponseToast' is defined but never used  @typescript-eslint/no-unused-vars
  Line 15:8:   'apiEndpoints' is defined but never used       @typescript-eslint/no-unused-vars

webpack compiled with 1 warning
@maia-iyer maia-iyer added bug Something isn't working frontend Tornjak UI (Frontend) manager Tornjak Manager labels Sep 30, 2024
@mamy-CS mamy-CS added this to the 1.9.0 milestone Sep 30, 2024
@mamy-CS mamy-CS self-assigned this Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Tornjak UI (Frontend) manager Tornjak Manager
Projects
None yet
Development

No branches or pull requests

2 participants