null $request in PendingRequest #38569
Unanswered
simioluwatomi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I have a HTTP Client that extends the
PendingRequest
class. The HTTP Client is registered as a singleton using a ServiceProviderSteps To Reproduce:
In the CustomHttpClient class, I have different methods that makes an API request. One of them is shown below
But each time an API request is made using any of the methods of CustomHTTPClient, the
ResponseReceived
event that is supposed to be triggered in thedispatchResponseReceivedEvent
method ofPendingRequest
is never triggered becauseprotected $request;
property ofPendingRequest
is always null even though a request has been sent and a response has been received.Beta Was this translation helpful? Give feedback.
All reactions