You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: