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
at least in symfony 5.4 the http client request method does not make an actual request but instead creates an TraceableResponse that is performed asynchronously. Then on line 97 $response = $this->getResponseContent($response); we try to deserialise the response
Actual Behavior
Currently transport exception is set up to be caught, wrapped and rethrown in the
AbstractResourceOwner
like this:HWIOAuthBundle/src/OAuth/ResourceOwner/AbstractResourceOwner.php
Lines 279 to 287 in 05d28ec
and it's called at
HWIOAuthBundle/src/OAuth/ResourceOwner/GenericOAuth2ResourceOwner.php
Lines 96 to 97 in 05d28ec
BUT!!!!
at least in symfony 5.4 the http client
request
method does not make an actual request but instead creates anTraceableResponse
that is performed asynchronously. Then on line 97$response = $this->getResponseContent($response);
we try to deserialise the responseHWIOAuthBundle/src/OAuth/ResourceOwner/AbstractResourceOwner.php
Lines 292 to 298 in 05d28ec
and only catch
JsonException
. But what is thrown isTransportResponseTrait
.Here is the actual stack trace
What is the actual behavior?
Symfony throws 500 because authenticator has no idea how to handle
TransportException
Expected Behavior
What is the behavior you expect?
The exception should be caught and rewrapped into
HWI\Bundle\OAuthBundle\OAuth\Exception\HttpTransportException
Steps to Reproduce
What are the steps to reproduce this bug? Please add code examples,
screenshots or links to GitHub repositories that reproduce the problem.
Possible Solutions
If you have already ideas how to solve the issue, add them here.
(remove this section if not needed)
AbstractResourceOwner::getResponseContent()
should also catch for theTransportExceptionInterface
and rewrap.The text was updated successfully, but these errors were encountered: