Closed suiXz closed 6 years ago
Hello @suiXz . If I remember correctly, it's normal behavior for guzzle. If you don't want to receive exception in case of non 2xx response then setup http_errors
option to true:
eight_points_guzzle:
clients:
api_client:
base_url: "%url%"
options:
http_errors: false
auth:
- "login" # login
- "pass" # password
headers:
content-type: "application/xml"
Accept: "application/xml"
Read more about it here: http://docs.guzzlephp.org/en/latest/request-options.html#http-errors
And please write if it's the fix of your problem :slightly_smiling_face:
Yeah it works thanks !
@suiXz you're welcome :slightly_smiling_face:
Hi guys, first time for me here !
I've used the bundle like this :
Injected my client into a service class :
And used him like that :
And i get this exception :