intuit / QuickBooks-V3-PHP-SDK

Official PHP SDK for QuickBooks REST API v3.0: https://developer.intuit.com/
Apache License 2.0
246 stars 246 forks source link

Parsing error issue in IntuitResponse #516

Open cezaro opened 3 months ago

cezaro commented 3 months ago

Something have changed in api response because now IntuitResponse can't parse xml from response. It happens because in IntuitResponse:148 method $this->getResponseContentType() returns application/xml;charset=UTF-8" and it is compared to application/xml because of that error code is not parsed correctly for FaultHandler instance

ManikaSaiKiran commented 3 months ago

@cezaro - Thank you for reporting this issue. We looked into it but have not been able to reproduce the problem you described. To help us investigate further, it would be useful if you could provide some additional details. Specifically, information on when you first started seeing the error, what PHP version you are using, request and response payloads etc. If you're using old PHP version, we recommend you to use latest version.

cezaro commented 3 months ago

I'm using Laravel 9.52 and PHP 8.2. I can't really tell when this bug really started but sometimes it works perfectly. I'll try to collect more data