Closed callcolor closed 6 years ago
Return $response with exception rather than returning 1 and echoing $response to console.
$response
1
Current: print_r() echo Array ( [success] => [code] => 400 [response] => {"error_description":"Not authorized for requested operation","error":"unauthorized_client"} [requestId] => 0 ) $e->getMessage() Unable to refresh token. 'access_token' not found in response. 1
Array ( [success] => [code] => 400 [response] => {"error_description":"Not authorized for requested operation","error":"unauthorized_client"} [requestId] => 0 )
Unable to refresh token. 'access_token' not found in response. 1
Expected: $e->getMessage() Unable to refresh token. 'access_token' not found in response. Array ( [success] => [code] => 400 [response] => {"error_description":"Not authorized for requested operation","error":"unauthorized_client"} [requestId] => 0 )
Unable to refresh token. 'access_token' not found in response. Array ( [success] => [code] => 400 [response] => {"error_description":"Not authorized for requested operation","error":"unauthorized_client"} [requestId] => 0 )
Thanks!
Return
$response
with exception rather than returning1
and echoing$response
to console.Current: print_r() echo
Array ( [success] => [code] => 400 [response] => {"error_description":"Not authorized for requested operation","error":"unauthorized_client"} [requestId] => 0 )
$e->getMessage()Unable to refresh token. 'access_token' not found in response. 1
Expected: $e->getMessage()
Unable to refresh token. 'access_token' not found in response. Array ( [success] => [code] => 400 [response] => {"error_description":"Not authorized for requested operation","error":"unauthorized_client"} [requestId] => 0 )