Troubleshooting In-App Notification Issues with Websockets
I got this question from one of our community members:
"I am trying to integrate In-App notifications in my applications. I have deployed novu in seperate VM. Triggering working fine.
But unable to get notification using socket
in browser console I am getting Error: websocket error."
19 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
It means websocket is not running or not properly configured in notification center
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I'm having a similar issue, "Invalid frame header"
this is a new issue, things were previously working and there are no changes that I am aware of on the novu configuration
Hi @ebm_3
You are also self hosting or using local env?
Hi @Pawan Jain local env
@ebm_3
could you please share more details or how to reproduce it. I tested in local with latest
could you please share more details or how to reproduce it. I tested in local with latest
next
branch. it is working fine for mewebsocket.js:124 WebSocket connection to 'wss://ws.novu.co/socket.io/?token=SECRETSTUFF*&transport=websocket' failed: Invalid frame header
WS.doOpen @ websocket.js:124
Transport.open @ transport.js:84
Socket.open @ socket.js:250
Socket @ socket.js:122
Socket @ socket.js:28
Manager.open.Manager.connect @ manager.js:226
(anonymous) @ manager.js:544
I'm not sure what else I can give you to assist, I'm using a react app with local env variables for the subscriberId and applicationIdentifier
I've checked inside of my account, nothing is out of the ordinary there
I appreciate your help!
@Engineering
I see we have updated socket.io in this PR
https://github.com/novuhq/novu/pull/2223
On stackoverflow, I found that version mismatch on client and server can be issue for above error.
https://stackoverflow.com/questions/43526607/invalid-frame-header
We have mismatch socket version in latest next branch
WDYT??
Let me do a quick PR.
@paweltymczuk or @pablo.fernandez.otero does this fix the following error in v0.10?
No, has nothing to do, but please open another support thread regarding this. 🙏
Will do!
@Emil did you solve your original issue with the websocket error? Facing the same and was not able to find a solution yet?
@Tobias, you just advanced to level 1!
Hey @Tobias! Well I have hard time recalling what was the fix.. Can you please open a new Support post in this channel and add all the details you can provide?
Thanks, yeah i did, i will tag you there if that's ok 🙂
SUre