Async error when using with actix
oleggtro opened this issue · 3 comments
The following error always occurs, when I request to create a client in actix.
Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.
...
client is created via let client = stripe::Client::new("sk_test_xxxxxxxx")
Fixed it by just rolling back a version, but that really shouldn't be the solution...
For debugging purposes, I've reproduced the issue here: https://github.com/imalsogreg/repro-stripe-153
@CloudyByte The most recent stable branch is using ^tokio-0.2.6
, which is by now fairly out of date with the rest of the async ecosystem. Unfortunately the best way to use stripe-rs in an actix project is to depend on one of actix's beta releases.
I will open a PR to add a note about this to the readme and the library documentation.