Skip to content

fix(google-calendar): throw InvalidTokenException on invalid_grant#1496

Closed
ameya9 wants to merge 2 commits into
dtinit:masterfrom
ameya9:fix_calendar_invalid_token
Closed

fix(google-calendar): throw InvalidTokenException on invalid_grant#1496
ameya9 wants to merge 2 commits into
dtinit:masterfrom
ameya9:fix_calendar_invalid_token

Conversation

@ameya9

@ameya9 ameya9 commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Mirror DriveImporter's handling: when calendar/event insertion fails with a TokenResponseException whose error is "invalid_grant", wrap and re-throw as InvalidTokenException so the transfer job recognises the token as invalid instead of treating it as a generic failure.

Mirror DriveImporter's handling: when calendar/event insertion fails with a
TokenResponseException whose error is "invalid_grant" (HTTP 400 from the
oauth2 token endpoint), wrap and rethrow as InvalidTokenException so the
transfer job recognizes the token as invalid instead of treating it as a
generic failure.
@CLAassistant

CLAassistant commented Jun 22, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ ameya9
❌ Ameya Shendre


Ameya Shendre seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@ameya9 ameya9 closed this Jun 22, 2026
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

Successfully merging this pull request may close these issues.

2 participants