jpopesculian / twitter-v2-rs

Rust bindings for Twitter API v2
https://docs.rs/twitter-v2/latest
102 stars 28 forks source link

Fix for "connection closed before message completed" error #16

Closed patrick-fitzgerald closed 2 years ago

patrick-fitzgerald commented 2 years ago

I was regularly seeing a "connection closed before message completed" error, when making API requests.

This fixes the issue, based on my testing.

Source: https://github.com/hyperium/hyper/issues/2136#issuecomment-861826148 & https://github.com/wyyerd/stripe-rs/pull/172

jpopesculian commented 2 years ago

If it's good enough for stripe it's good enough for me! Thanks!