airbytehq / airbyte

The leading data integration platform for ETL / ELT data pipelines from APIs, databases & files to data warehouses, data lakes & data lakehouses. Both self-hosted and Cloud-hosted.
https://airbyte.com
Other
16.18k stars 4.14k forks source link

[source-quickbooks] not working after access token expires #45911

Open hakodexte opened 1 month ago

hakodexte commented 1 month ago

Connector Name

source-quickbooks

Connector Version

3.0.3

What step the error happened?

Updating the connector

Relevant information

Added all OAuth 2.0 info Setup the Token Expiry Date to be 1h after the access token was generated (or closer time to it in the :30 mins intervals it allows) Initiated sync Worked flawlessly until access token died (1h) Received 401 error.

I tried both prod and sandbox, same error. I would appreciate your assistance a lot, thank you very much!

Relevant log output

Configuration check failed
'Unable to connect to stream accounts - 401 Client Error: Unauthorized for url: https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer'

Contribute

charles-astrafy commented 1 month ago

Same issue here. It seems the mechanism to refresh the token is not working

marcosmarxm commented 1 month ago

@pabloescoder are you working in other issue related to Quickbooks? Can you take a look into this one?

pabloescoder commented 1 month ago

@marcosmarxm I've made changes for the other issue and raised a PR, waiting for that to get merged because after those changes the refresh logic is working locally for me, there's an issue with the regression tests which is a blocker. Once that's resolved and that PR is merged, this should ideally be solved. If it's not resolved even after that, then I'll definitely take a look into what is going wrong.