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

handling err connection refused #160

Open
rrphotosoft opened this issue Sep 10, 2016 · 0 comments
Open

handling err connection refused #160

rrphotosoft opened this issue Sep 10, 2016 · 0 comments

Comments

@rrphotosoft
Copy link

Hi,
I have been using your gem successfully, but for one problem.
I'm simulating a situation where the server is down, or the connection is refused for some reason.
In that case, my console output is as follows:

POST
http://localhost:3000/units net::ERR_CONNECTION_REFUSED

jquery.iframe-transport.self-9d6de1e….js?bo…:190 Uncaught SecurityError: Blocked a frame with origin "http://localhost:3000" from accessing a frame with origin "null". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "data". Protocols must match

Any idea how I can catch this error, so that I can show the user a simple message saying the server is down? I tried wrapping my form.submit() js call in a try{}catch{} block, but it does not work.

Best Regards,
RR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant