QuickBooks-V3-PHP-SDK icon indicating copy to clipboard operation
QuickBooks-V3-PHP-SDK copied to clipboard

API errors via Guzzle should not throw exception

Open kingIZZZY opened this issue 1 year ago • 0 comments

When using the default cURL subsystem the response is correctly handled by the SDK Fault Handler for clients to consume as documented. But when using Guzzle subsystem by calling $dataService->setClientName('guzzle') it throws an exception by default for all HTTP 4xx and 5xx response codes, the SDK does not process it as a Fault Handler and the client cannot handle cases such as 401 Unauthorized to re-authenticate etc.

Guzzle should be configured to treat HTTP error responses same as all http responses, not throw exception.

kingIZZZY avatar Aug 02 '22 03:08 kingIZZZY