Skip to content

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

@sanchyanchakraborty

Description

@sanchyanchakraborty

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

  • Version [2.1.3]

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions