Closed amadeogallardo closed 3 months ago
Same problem. Now I'm having trouble reverting to 4.0.0 as well.
Thank you @amadeogallardo and @ysageev , I've created a new branch from the master, called release-4.1.1 and raised this PR: https://github.com/intuit/oauth-jsclient/pull/160
Please verify if this PR fixes the issue. If all looks good, will merge this PR into master later this week. Thanks
Thank you @rajeshgupta723, I will wait for the patch release to be tagged and then upgrade the dependency to confirm the fix.
Yes, a tagged patch release would be more convenient for me as well.
Thank you @amadeogallardo and @ysageev -- a patch release 4.1.1 has been created. https://github.com/intuit/oauth-jsclient/releases/tag/4.1.1
@rajeshgupta723 Can you publish a new version on npm as well? Latest is still 4.1.0
Thank you @rajeshgupta723.
I copied the OAuthClient source directly into my project, removed the package.json entry, added your dependencies, built it, and... it runs great!
I successfully authenticated, retrieved company info, and uploaded an invoice. 🙏
Thank you @laurentjacob and @ysageev , appreciate your support! latest npm has been relased: https://www.npmjs.com/package/intuit-oauth/v/4.1.1
Hi, I'm seeing the same error in 4.1.1 when calling refreshUsingToken
. I only looked briefly but it appears that it might be an issue anytime JSON.stringify(authResponse, ...)
is called.
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'ClientRequest'
| property 'socket' -> object with constructor 'TLSSocket'
--- property '_httpMessage' closes the circle
at JSON.stringify (<anonymous>)
at ...\node_modules\intuit-oauth\src\OAuthClient.js:274:14
The following error is thrown by the latest version of the OAuth Client: