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]: Without ingress, error in the frontend #88

Closed
nlamirault opened this issue Dec 11, 2024 · 9 comments · Fixed by #90
Closed

[BUG]: Without ingress, error in the frontend #88

nlamirault opened this issue Dec 11, 2024 · 9 comments · Fixed by #90
Assignees
Labels
bug Something isn't working

Comments

@nlamirault
Copy link
Contributor

nlamirault commented Dec 11, 2024

Description of the bug

If i try to use Keep without ingress configuration, and with port-forward, i've got this error

Application error: a client-side exception has occurred (see the browser console for more information).

Using this configuration, https://docs.keephq.dev/deployment/kubernetes/installation#without-ingress-not-recommended

Steps To Reproduce

https://docs.keephq.dev/deployment/kubernetes/installation#without-ingress-not-recommended

Additional Information

in the browser console:

ingest.keephq.dev/static/web-vitals.js?v=1.186.1:1 

       Failed to load resource: net::ERR_BLOCKED_BY_CLIENTUnderstand this errorAI
pusher.js:3742 WebSocket connection to 'ws://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742Understand this errorAI
ingest.keephq.dev/static/web-vitals.js?v=1.186.1:1 
        
        
       Failed to load resource: net::ERR_BLOCKED_BY_CLIENTUnderstand this errorAI
app-index.tsx:25 TypeError: Cannot read properties of undefined (reading 'map')
    at page.client.tsx:53:66
    at aW (react-dom.production.min.js:212:342)
    at oe (react-dom.production.min.js:240:225)
    at ol (react-dom.production.min.js:243:85)
    at or (react-dom.production.min.js:242:69)
    at ol (react-dom.production.min.js:244:62)
    at or (react-dom.production.min.js:242:69)
    at ol (react-dom.production.min.js:244:62)
    at or (react-dom.production.min.js:242:69)
    at ol (react-dom.production.min.js:243:50)
window.console.error @ app-index.tsx:25Understand this errorAI
app-index.tsx:25 TypeError: y.map is not a function
    at E (AlertsLinks.tsx:122:55)
    at rE (react-dom.production.min.js:108:419)
    at l$ (react-dom.production.min.js:160:170)
    at iZ (react-dom.production.min.js:278:18)
    at ia (react-dom.production.min.js:264:322)
    at react-dom.production.min.js:262:29
    at il (react-dom.production.min.js:262:29)
    at oJ (react-dom.production.min.js:255:92)
    at nb (react-dom.production.min.js:77:247)
    at nw (react-dom.production.min.js:78:403)
window.console.error @ app-index.tsx:25Understand this errorAI
pusher.js:3742 WebSocket connection to 'wss://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742Understand this errorAI
pusher.js:3742 WebSocket connection to 'ws://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742Understand this errorAI
pusher.js:3742 WebSocket connection to 'wss://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742Understand this errorAI
pusher.js:3742 WebSocket connection to 'ws://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742Understand this errorAI
pusher.js:3742 WebSocket connection to 'wss://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742Understand this errorAI
26Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.Understand this warningAI
pusher.js:3742 WebSocket connection to 'ws://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742
getSocket @ pusher.js:1662
connect @ pusher.js:1517
s @ pusher.js:3890
emit @ pusher.js:1475
changeState @ pusher.js:1625
transportConnectionInitializer @ pusher.js:3244
connect @ pusher.js:3919
tryStrategy @ pusher.js:2881
o @ pusher.js:2852
(anonymous) @ pusher.js:2878
(anonymous) @ pusher.js:918
(anonymous) @ pusher.js:891Understand this errorAI
pusher.js:3742 WebSocket connection to 'wss://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742
getSocket @ pusher.js:1662
connect @ pusher.js:1517
s @ pusher.js:3890
emit @ pusher.js:1475
changeState @ pusher.js:1625
transportConnectionInitializer @ pusher.js:3244
connect @ pusher.js:3919
tryStrategy @ pusher.js:2881
o @ pusher.js:2852
(anonymous) @ pusher.js:2878
(anonymous) @ pusher.js:918
(anonymous) @ pusher.js:891Understand this errorAI
pusher.js:3742 WebSocket connection to 'ws://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742
getSocket @ pusher.js:1662
connect @ pusher.js:1517
s @ pusher.js:3890
emit @ pusher.js:1475
changeState @ pusher.js:1625
transportConnectionInitializer @ pusher.js:3244
connect @ pusher.js:3919
tryStrategy @ pusher.js:2881
o @ pusher.js:2852
(anonymous) @ pusher.js:2878
(anonymous) @ pusher.js:918
(anonymous) @ pusher.js:891Understand this errorAI
pusher.js:3742 WebSocket connection to 'wss://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742
getSocket @ pusher.js:1662
connect @ pusher.js:1517
s @ pusher.js:3890
emit @ pusher.js:1475
changeState @ pusher.js:1625
transportConnectionInitializer @ pusher.js:3244
connect @ pusher.js:3919
tryStrategy @ pusher.js:2881
o @ pusher.js:2852
(anonymous) @ pusher.js:2878
(anonymous) @ pusher.js:918
(anonymous) @ pusher.js:891Understand this errorAI
pusher.js:3742 WebSocket connection to 'ws://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742
getSocket @ pusher.js:1662
connect @ pusher.js:1517
s @ pusher.js:3890
emit @ pusher.js:1475
changeState @ pusher.js:1625
transportConnectionInitializer @ pusher.js:3244
connect @ pusher.js:3919
tryStrategy @ pusher.js:2881
o @ pusher.js:2852
(anonymous) @ pusher.js:2878
(anonymous) @ pusher.js:918
(anonymous) @ pusher.js:891Understand this errorAI
pusher.js:3742 WebSocket connection to 'wss://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742
getSocket @ pusher.js:1662
connect @ pusher.js:1517
s @ pusher.js:3890
emit @ pusher.js:1475
changeState @ pusher.js:1625
transportConnectionInitializer @ pusher.js:3244
connect @ pusher.js:3919
tryStrategy @ pusher.js:2881
o @ pusher.js:2852
(anonymous) @ pusher.js:2878
(anonymous) @ pusher.js:918
(anonymous) @ pusher.js:891Understand this errorAI
pusher.js:3742 WebSocket connection to 'ws://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742
getSocket @ pusher.js:1662
connect @ pusher.js:1517
s @ pusher.js:3890
emit @ pusher.js:1475
changeState @ pusher.js:1625
transportConnectionInitializer @ pusher.js:3244
connect @ pusher.js:3919
tryStrategy @ pusher.js:2881
o @ pusher.js:2852
(anonymous) @ pusher.js:2878
(anonymous) @ pusher.js:918
(anonymous) @ pusher.js:891Understand this errorAI
pusher.js:3742 WebSocket connection to 'wss://localhost/websocket/app/keepappkey?protocol=7&client=js&version=8.3.0&flash=false' failed: 
createWebSocket @ pusher.js:3742
getSocket @ pusher.js:1662
connect @ pusher.js:1517
s @ pusher.js:3890
emit @ pusher.js:1475
changeState @ pusher.js:1625
transportConnectionInitializer @ pusher.js:3244
connect @ pusher.js:3919
tryStrategy @ pusher.js:2881
o @ pusher.js:2852
(anonymous) @ pusher.js:2878
(anonymous) @ pusher.js:918
(anonymous) @ pusher.js:891Understand this errorAI
@nlamirault nlamirault added the bug Something isn't working label Dec 11, 2024
@shahargl
Copy link
Member

hey @nlamirault - what helm and keep version you use?

can you try disable Pusher (add PUSHER_DISABLED=true on both frontend/backend) and tell me if you still have error?

@shahargl
Copy link
Member

also - what do you say about join our Slack (https://slack.keephq.dev) so me and @talboren would be able to help faster?

@d4alpha
Copy link

d4alpha commented Dec 12, 2024

I have the same problem. I am using the Helm Chart Version 0.1.45 and appVersion 0.30.7
Beginning with appVersion 0.30.4 i see the mentioned error message. With version 0.30.3 the UI still works.

@shahargl
Copy link
Member

shahargl commented Dec 12, 2024

hey @d4alpha @nlamirault - should be solved with 0.1.47 - #90

@d4alpha
Copy link

d4alpha commented Dec 12, 2024

I tried with 0.1.47 with appVersion 0.31.7 and i still get the following error:
Application error: a client-side exception has occurred (see the browser console for more information).

Console:
app-index.tsx:25 TypeError: y.map is not a function
at A (AlertsLinks.tsx:122:55)
at rE (react-dom.production.min.js:108:419)
at l$ (react-dom.production.min.js:160:170)
at iZ (react-dom.production.min.js:278:18)
at ia (react-dom.production.min.js:264:322)
at react-dom.production.min.js:262:29
at il (react-dom.production.min.js:262:29)
at oJ (react-dom.production.min.js:255:92)
at nb (react-dom.production.min.js:77:247)
at nw (react-dom.production.min.js:78:403)

@shahargl
Copy link
Member

it's a different bug, can you please share a video of this crash? @d4alpha

@shahargl
Copy link
Member

@d4alpha - if you DM me on our Slack I'll be able to solve it quickly

@nlamirault
Copy link
Contributor Author

nlamirault commented Dec 26, 2024

i add this into the backend and frontend:

- name: PUSHER_DISABLED
  value: 'true'

and I've got the error.
Using Helm chart version 0.1.53 and Keep v0.32.8

@nlamirault
Copy link
Contributor Author

works fine replacing /v2 with /backend.
See 5ee90ba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants