checkr-ruby icon indicating copy to clipboard operation
checkr-ruby copied to clipboard

Checkr is not thread safe

Open slbug opened this issue 5 years ago • 5 comments

If you are have to use multiple api_base / api_key setting it won't be thread safe.

slbug avatar Feb 04 '20 04:02 slbug

@slbug Hi, unfortunately this is a known issue, which will be addressed in the future v2 of the gem. As for now, version 1.5.4 and up provides a workaround of passing the api_key directly to the requests: https://github.com/checkr/checkr-ruby/commit/7537da0729b9302712e07c400b48101a275d5bf9 Hope this helps for now. Thanks for raising the issue and bringing this to our attention!

nothingisfunny avatar Feb 06 '20 22:02 nothingisfunny

Thanks for answer, I know about api_key, but there is no option to pass api_base same way.

slbug avatar Feb 06 '20 22:02 slbug

@slbug Makes sense, let me look into this and see if we can add a fix.

nothingisfunny avatar Feb 06 '20 22:02 nothingisfunny

@slbug Could you provide me with an example of a use case you struggled with that required a different api_base? That'd help a lot, thanks

nothingisfunny avatar Feb 06 '20 23:02 nothingisfunny

@nothingisfunny i have multiple hosts for api_base. Don't know why, but it's required :)

slbug avatar Feb 07 '20 05:02 slbug