Open andrewheiss opened 6 years ago
This may be a deeper issue, though. When placing the slideshow on a non-https server, I get this error in Firefox only:
Firefox can’t establish a connection to the server at ws://calm-caverns-50885.herokuapp.com/socket/websocket?token=undefined&vsn=1.0.0.
It works as expected in Chrome.
Thanks for the detailed report!
I did some poking around tonight and weirdly enough had less luck than you. ws://calm-caverns-50885.herokuapp.com/socket
is actually giving me 301 redirects in Chrome and I can't get remarksync to work at all.
I sorta figure Heroku itself started enforcing SSL since I deployed this back in 2016, that's why I get redirects (I don't understand why you're not getting them tho), so I tried using wss://
(ssl websockets) but that gets me 403 errors without any useful info.
I had to build a Dockerfile to be able to build and run remarksync again locally, it built and ran but I didn't get much time to debug what's going on.
Will dig some more soon.
Do you have a link to the Dockerfile? I'd be interested in tinkering with it too if you do.
I pushed it here https://github.com/omnibs/remarksync/commit/117b2d01c225980a7c1a61a63b37af1a7adf7efe
If you run into problems running/compiling (I did, some ranch app not found error), it's some FS timestamp problem. Running a shell in the container and doing
$ mix deps.clean -all
$ mix clean
$ mix deps.get
$ mix compile
$ iex -S mix phoenix.server
should make it work.
Using the latest version of remark (as of 2018-07-04), attempting to use remarksync triggers the following security error in Firefox:
The error can be reproduced by using
boilerplate-remote.html
and modifying it slightly:Chrome gives more details about the error: the Phoenix Heroku app seems to not support WSS: