XeroAPI / xero-php-oauth2

Xero PHP SDK for oAuth 2 generated from Xero API OpenAPI Spec 3.0
MIT License
91 stars 65 forks source link

When trying to connect to Xero using Xero's PHP API, an error is thrown. #375

Open sanchyanchakraborty opened 13 hours ago

sanchyanchakraborty commented 13 hours ago

SDK you're using (please complete the following information):

Describe the bug When trying to connect to Xero using Xero's PHP API, the following error is thrown: Message Crash: Invalid value for 'class', must be one of 'DEMO', 'TRIAL', 'STARTER', 'STANDARD', 'PREMIUM', 'PREMIUM_20', 'PREMIUM_50', 'PREMIUM_100', 'LEDGER', 'GST_CASHBOOK', 'NON_GST_CASHBOOK'

I am using this code, and the error occurs within this catch block. try { $apiResponse = $apiInstance->getOrganisations($xeroTenantId); } catch(Exception $e) { echo 'Message Crash: ' .$e->getMessage(); }

We have multiple users, but this issue is only affecting one user. The user says he's in the GROW plan. Could that be causing the issue? I have no idea about that.

In the Demo Company account or other live users' accounts, it's working fine. However, for one specific user on their real account, it throws an error.

Any suggestions on what to do?

Kind regards

github-actions[bot] commented 13 hours ago

PETOSS-591

github-actions[bot] commented 13 hours ago

Thanks for raising an issue, a ticket has been created to track your request