Open clemens1483 opened 1 month ago
Thanks for the report! There is some discussion on this in https://github.com/DeepLcom/deepl-rb/pull/3 . I don't think the keepalive support I added in 3.0 is possible without such errors with Net::HTTP
which we currently use, so if you need to make concurrent requests I'm afraid you will need to keep using 2.5.3 for now - I will look into a HTTP library we can use that supports both.
We have been using the gem on version 2.5.3 without any issues. However, we are now trying to update to the newest version, 3.0.2 and are facing quite a few issues
When making many ~10+ simultaneous translation requests via
DeepL.translate
from within sidekiq workers running in parallel a lot of the requests fail and raise an error with eitherIOError: stream closed in another thread
FrozenError: can't modify frozen OpenSSL::SSL::SSLContext
This was NOT an issue on 2.5.3
VERSION: 3.0.2 API CALL: `DeepL.translate("some string", nil, "FR", tag_handling: 'html')