You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the default JDK client, all is fine. With the Apache one, the callback is never invoked (neither the onCompleted or the onError). However, if I enable the logging of the client, I can see the connection is established and the stream is being consumed.
However, using the HttpAsyncResponseConsumer contract, I am able to do what I want. Have I missed something in the httpclient abstraction that allows this?
I am trying to get my head around why my code does not work when I try to use an async client (Apache) while the JDK works fine.
My use case is connecting to the Twitter stream endpoint. There's already such a client and it doesn't work with an async client (https://github.com/redouane59/twittered) either.
The code is here https://github.com/redouane59/twittered/blob/19134de9dc9ae82be1b61ac551c6a482a04017ab/src/main/java/io/github/redouane59/twitter/helpers/RequestHelperV2.java#L99
With the default JDK client, all is fine. With the Apache one, the callback is never invoked (neither the
onCompleted
or theonError
). However, if I enable the logging of the client, I can see the connection is established and the stream is being consumed.Example usage with Twittered:
If I use the default (JDK) client, the callback is invoked.
The text was updated successfully, but these errors were encountered: