Skip to content

Error failing to create if response is missing headers #70

Closed
@ischu

Description

@ischu

Please consider changing line 595 in OAuthClient.js from
e.intuit_tid = (authResponse && authResponse.headers().intuit_tid) || '';
to
e.intuit_tid = (authResponse && authResponse.headers() && authResponse.headers().intuit_tid) || '';

Something was wrong with the response header and I was getting "TypeError: Cannot read property 'intuit_tid' of undefined" instead of the error returned by Intuit. I added the additional short circuit and now I can see the original error.

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