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

Quickbooks source: Refresh token expires after 1 hour in Cloud #44471

Closed
natikgadzhi opened this issue Aug 20, 2024 · 16 comments
Closed

Quickbooks source: Refresh token expires after 1 hour in Cloud #44471

natikgadzhi opened this issue Aug 20, 2024 · 16 comments
Assignees

Comments

@natikgadzhi
Copy link
Contributor

Connector Name

source-quickbooks

❓ What

The Quickbooks connector fails after the refresh token expires, as the refresh token expires after 1 hour.

πŸ“ˆ Impact

Quickbook syncs will be able to continue running without failures. Users often see the second sync and every sync after fail.

🀝 Proposed solution

Rework the authentication for the Quickbook OAuth so that it refreshes the expiry of the token. A refresh token can last up to 100 days.

@natikgadzhi
Copy link
Contributor Author

This one is pretty high leverage. Let's make sure to implement token refresh mechanism. You will need test accounts though, we'd need to figure out a partner to give us their creds.

@csphereholdings
Copy link

Hey there, @natikgadzhi - happy to share some test creds in QB with you. Nothing sensitive there.

@pabloescoder
Copy link
Collaborator

Hey @csphereholdings, I'll be working on the issues you posted for QuickBooks - this one and the issue that you're getting about the eval method.

Could you please share the test QB credentials with me?
Or alternatively if you prefer you can share it with @natikgadzhi and I can get those from him, anything works.

@csphereholdings
Copy link

Hello @pabloescoder aka Dhroov ;)

Just e-mailed you.

Cheers!

@csphereholdings
Copy link

Hello! @pabloescoder just wanted to check in and see how things are coming along? Anything I can help with?

@pabloescoder
Copy link
Collaborator

Hey hey @csphereholdings
I've created a PR for the QuickBooks error that you were getting while setting up the connector (str has no method eval) I've resolved that, and while I was testing that I noticed that the token was being refreshed automatically (I was able to get results with an access token that I had created the previous day - so Airbyte was using the refresh token to generate a new access token)
Anyway, we've kicked off regression tests for that connector, and I'm waiting for that PR to get merged, once that's done we can see if the issue with the token is resolved, if not then I'll look into why that's the case.
CC: @natikgadzhi

@csphereholdings
Copy link

csphereholdings commented Aug 28, 2024 via email

@pabloescoder
Copy link
Collaborator

Sure, will do, thank you!

@charles-astrafy
Copy link

What's the status on this issue ? The connector is a bit useless if the refresh token mechanism is not working.

Thank you.

@csphereholdings
Copy link

Greetings! Any updates here? Anything we can do to help close this out?

@pabloescoder
Copy link
Collaborator

@charles-astrafy @csphereholdings We've released a new version (3.0.26) that fixes a bug that made the connector unusable.
Are you seeing this issue again in 3.0.26?

@pabloescoder pabloescoder moved this from πŸ“… Prioritized to ♻️ In Progress in Community Board Nov 26, 2024
@charles-astrafy
Copy link

charles-astrafy commented Nov 26, 2024

@pabloescoder I confirm the refresh token mechanism is now working on our end. Thanks a lot.

@pabloescoder
Copy link
Collaborator

@charles-astrafy Awesome! I'm glad to hear that.
Closing issue as resolved in 3.0.26.

@github-project-automation github-project-automation bot moved this from ♻️ In Progress to βœ”οΈ Done in Community Board Nov 26, 2024
@nataliekwong
Copy link
Contributor

Hi @pabloescoder , I noticed a new similar issue about the authentication expiring after 1 hour: #49842. Would this issue be similar to the one you resolved or different?

Thanks,
Natalie

@pabloescoder
Copy link
Collaborator

Hey @nataliekwong, This issue should've been resolved in 3.0.26, but I can see that in the new issue that's raised, they're already on 3.0.26 and still seeing the issue.

The refresh token mechanism was working for me locally and also for Charles as mentioned above.

I'll investigate further to see why we're seeing this issue again.

@nataliekwong
Copy link
Contributor

Got it, thanks!

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

No branches or pull requests

6 participants