Skip to content

GoogleCalendarImporter does not throw InvalidTokenException on invalid_grant #1499

Description

@ameya9

When importing data into Google Calendar, an expired or revoked OAuth token causes Google's token endpoint to return 400 Bad Request with "error": "invalid_grant". GoogleCalendarImporter does not catch this TokenResponseException, so the failure surfaces as a generic/uncategorized error rather than as an InvalidTokenException. As a result the transfer framework cannot recognise the token as invalid and react appropriately (e.g. trigger re-authentication).

This differs from DriveImporter, which already handles this case correctly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions