ssl - Meteor error: failed: WebSocket is closed before the connection is established -
i have been @ days , can't seem find solution this. have live website, , installed ssl certificate , made website available on https.
what's strange @ first website worked on https. day or live , working well. next day checked , site giving me error:
websocket connection 'wss://domain.com/sockjs/421/dto72qfy/websocket' failed: websocket closed before connection established.
the navigation bar loads , sidebar loads, content doesn't, it's stuck in 'loading' template. if check domain in http website working fine.
i using meteor (mup) upload site , digital ocean. 1 of few things have changed mup.json
... // configure environment "env": { "root_url": "https://website.com/" //"port": 80 }, "ssl": { "pem": "./ssl.pem" //"backendport": 80 }, ...
i'm not sure how deal websockets , why have problems in https. if has gotten meteor app work mup , ssh appreciate help.
you can disable websockets
adding following environmental variable in mup.json
"disable_websockets"=1
if don't want disable websockets, can try option 2 here.
we have websockets disabled on https://saturnapi.com; can see if usable. others have reported disabling websockets still allow usable app, albeit bit slower. should depend on how app configured, recommend giving try , reverting other solutions if doesn't work.
Comments
Post a Comment