invalid_grant: Invalid JWT Signature using Python client

626 views
Skip to first unread message

David Epstein

unread,
Jun 6, 2021, 10:29:16 AM6/6/21
to Google Cloud Developers

Hi folks,

I'm having difficulty getting the text-to-speech Python example working, though I've followed all the steps. "gcloud auth login" works without a problem. But, when I run my code, the actual request freezes (response = client.synthesize_speech...). Hitting control-C, I see the error ('invalid_grant: Invalid JWT Signature.' in the trace. Information online suggests this may be due to an expired key or incorrect date/time on my system. However, my key is active and the date/time is fine (for Israel, where I'm located). Could anyone suggest how to troubleshoot this problem? I really don't know what I should check for.

thank you,
-david




Sway [Cloud Support]

unread,
Jun 8, 2021, 4:29:14 PM6/8/21
to Google Cloud Developers
Thank you for reporting this issue, and for the feedback.

Google Groups are reserved for general product discussion, StackOverflow is for technical questions whereas the Issue Tracker is for product issues (such as unexpected/ incorrect behaviors) and feature requests. 

For this reason, since the result is unexpected I’d advise you to open an issue to the Issue Tracker of Cloud Text-to-Speech that is located here [1], in order to file this issue and you’ll be able to get updates from the product team regarding this issue.

That being said, double-check that you've created a service account and provide the necessary role/ permissions [2], a more detailed walkthrough [3], and a related Stack Overflow answer [4].

Reply all
Reply to author
Forward
0 new messages