cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-1195] Google calendar token expired

Open Udit-takkar opened this issue 2 years ago • 5 comments

Screenshot 2023-03-07 at 11 25 46 PM

This is what is displayed when access token expires. There is an error refreshing tokens in the logs

@calcom/web:dev: 23:24:16.998 ERROR [[lib] google_calendar Error refreshing google token @calcom/web:dev: Error invalid_grant

@calcom/web:dev: data: { @calcom/web:dev: error: 'invalid_grant', @calcom/web:dev: error_description: 'Token has been expired or revoked.' @calcom/web:dev: },

Moreover, this prevents events from syncing with Google Calendar.

Need to inform user when token expires through email or better figure out if refreshing token is possible as all the booking made when user token expires won't show up in the calendar.

CAL-1195

Udit-takkar avatar Mar 07 '23 18:03 Udit-takkar

Same as #5796. This bug makes self-hosted Cal pretty much unusable for me.

eeshaan avatar Mar 09 '23 18:03 eeshaan

we're urgently investigating!

PeerRich avatar Mar 09 '23 22:03 PeerRich

@alannnc can you replicate in your self-hosted instance?

zomars avatar Mar 09 '23 23:03 zomars

Are the Oauth credentials "in production" on google's side?

ilyasubkhankulov avatar May 02 '23 20:05 ilyasubkhankulov

@ilyasubkhankulov Just the switched the OAuth credentials to "In production" — was not before. Will report back in a week or so.

eeshaan avatar May 26 '23 14:05 eeshaan

@ilyasubkhankulov Things seem to be fine now! Can't be sure if that was the fix, but maybe it would be best to add that step to the README just in case it was.

eeshaan avatar Jun 04 '23 03:06 eeshaan

@alannnc @zomars @roae Is something need to be done here.

In my knowledge, credentials refresh automatically and it works.

hariombalhara avatar Jun 21 '23 14:06 hariombalhara

Closing this as resolved 🙏

emrysal avatar Jun 22 '23 19:06 emrysal