Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error failing to create if response is missing headers #70

Closed
ischu opened this issue Jan 14, 2020 · 0 comments
Closed

Error failing to create if response is missing headers #70

ischu opened this issue Jan 14, 2020 · 0 comments

Comments

@ischu
Copy link

ischu commented Jan 14, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants