Closed metametadata closed 2 years ago
Interesting...
This is very specific case caused by how send-message
detect format of the body, effectively falling back here. To solve the problem, exception from here should be propagated up to request consumption method here. Ideally, we need to make sure that anytime sending request fails
responses
stream (otherwise the connection would just hang up until timeout)Let me prepare a PR to implement the logic.
Fixed by #592
Actual
IllegalArgumentException
is logged while returned deferred contains an error about timeout:Expected
http/put
throwsIllegalArgumentException
immediately in the current thread.Notes
IllegalArgumentException
doesn't seem to be catchable even viaThread/setDefaultUncaughtExceptionHandler
which makes it hard to detect the exception in production.IllegalArgumentException
.