Skip to content

Error handler returns nothing for 400 errors #521

Open
@rgasch

Description

We have fundamentally working integration. However, sometimes we get a 400 Error and in this case, the following code

$errorHandler = $this->_connector->getLastError();
CliLog::error("API: Http Status Code = " . $errorHandler->getHttpStatusCode());
CliLog::error("API: Error Message = " . $errorHandler->getIntuitErrorMessage());
CliLog::error("API: Error Element = " . $errorHandler->getIntuitErrorElement());
CliLog::error("API: Error Detail = " . $errorHandler->getIntuitErrorDetail());
CliLog::error("API: Error Code = " . $errorHandler->getIntuitErrorCode());
CliLog::error("API: Error Type = " . $errorHandler->getIntuitErrorType());

All these calls other than the getHttpStatusCode() call return nothing.

Is this a bug or are we using an incorrect method to get the cause of a 400 error?

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