N
Novu4mo ago
_7eo.

Socket error

Hi, I'm a little lost with this error. I'm using novu headless. I set up my app to access ws: const headlessService = new HeadlessService({ applicationIdentifier: 'huPdDEt9tm0t', subscriberId: session?.user._id, backendUrl: 'https://novu.aadim.org.ar/api', socketUrl: 'https://novu.aadim.org.ar/ws', }); The call to https://novu.aadim.org.ar/socket.io/ answers Hello World!. so the ws server is taking the request. I set up an nginx reverse proxy server. I also followed the nginx recommendations to establish the socket service through a reverse proxy like this: But when trying to establish the connection it fails to create the object below. { "uri": "wss://novu.aadim.org.ar:443/socket.io/?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NjI2OTcxMzZlNGZmNzRiZWY0OTNmMmYiLCJmaXJzdE5hbWUiOiJMZW9uYXJ kbyIsImxhc3ROYW1lIjoiRmVycmFybyIsIm9yZ2FuaXphdGlvbklkIjoiNjU3OWQ0NzIxOWI1NTQzMmQxODIwMTJkIiwiZW52aXJvbm1lbnRJ ZCI6IjY1NzlkNDcyMTliNTU0MzJkMTgyMDEzMyIsInN1YnNjcmliZXJJZCI6IjY2MjY5NzEzMzU5MTU4ZDJhY2UxMDdkYyIsImlhdCI6MTcyMzgzNjU0NiwiZXhwIjoxNzI1MTMyNTQ2LCJhdWQiOi J3aWRnZXRfdXNlciIsImlzcyI6Im5vdnVfYXBpIn0.JCJz6l9LnGc4_J4JyWjbbORnWLcgr3rImtVuQXuulCY&EIO=4&transport=websocket", "opts": { "agent": false, "perMessageDeflate": { "threshold": 1024 }, "rejectUnauthorized": true } } any ideas? the browser says; socket error {"description":{"isTrusted":true},"type":"TransportError"}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server