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
When trying to validate a string that looks like URI, but is not a real one,
the error thrown in custom_open is SocketError, not OpenURI::HTTPError, Timeout::Error.
It is not caught here, but by other more generic app layer, and is not processed properly as a result.
When SocketError is added to the rescue list as a patch, everything works as expected. Could you please update the main code?
The text was updated successfully, but these errors were encountered:
There is one difference I found though, when running this from CLT: the error thrown is WebMock::NetConnectNotAllowedError, not SocketError I had inside the app.
When trying to validate a string that looks like URI, but is not a real one,
the error thrown in custom_open is SocketError, not OpenURI::HTTPError, Timeout::Error.
It is not caught here, but by other more generic app layer, and is not processed properly as a result.
When SocketError is added to the rescue list as a patch, everything works as expected. Could you please update the main code?
The text was updated successfully, but these errors were encountered: