Ha ha. Me too got same error. Here is the solution for that.
Let’s find some working stuff other than Gmail API