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

[source-xero] Access tokens getting expired without refreshing #38928

Closed
1 task done
abedzantout opened this issue Jun 4, 2024 · 2 comments
Closed
1 task done

[source-xero] Access tokens getting expired without refreshing #38928

abedzantout opened this issue Jun 4, 2024 · 2 comments

Comments

@abedzantout
Copy link
Contributor

Connector Name

source-xero

Connector Version

1.0.0

What step the error happened?

During the sync

Relevant information

After half an hour of setting a new access token using xero PKCE flow, I get the following error:

'Unable to connect to stream bank_transactions - Failed to authorize request. Please update your access token to continue using the source.'

Main reason is the access token expires after half an hour, and no refresh token was fetched.

I'm currently running Airbyte 0.59.1. I am wondering if I need to update to a newer version of Airbyte

Relevant log output

No response

Contribute

  • Yes, I want to contribute
@marcosmarxm
Copy link
Member

@abedzantout, please message me on Slack if you need help with the fix.

@abedzantout
Copy link
Contributor Author

I've updated to the latest airbyte, and the problem persists.

I also followed this migration guide closely: https://docs.airbyte.com/integrations/sources/xero-migrations.

However, it seems that the connector is using the bearer strategy:

the access_token expires in 30 minutes, and there is no where in the codebase that we refresh the tokens using the https://identity.xero.com/connect/token endpoint (we've removed it since the 1.0.0 release).

Happy to re-implement the refresh token piece

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

No branches or pull requests

3 participants