0

Error: RequestFailureException (com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request { "error" : "invalid_grant" })

I am getting this error when trying to publish the forms in odk aggregate.I have included basic APIs (Drive,fusion,google map) only. Using aggregate 1.4.5 version.

Pete
  • 57,112
  • 28
  • 117
  • 166

2 Answers2

1

I was just encountering the same error. I realized that I was not inputting the correct email address in the "Google API Credentials Upload" window. I was putting my regular (@gmail.com) address instead of the service (@appspot.gserviceaccount.com) address. Once I changed the email address everything else worked.

p.s. I found the service account email for my project at https://console.developers.google.com/permissions/serviceaccounts?project=NAME_OF_YOUR_PROJECT_HERE

Adam Michalik
  • 9,678
  • 13
  • 71
  • 102
Devin
  • 11
  • 1
0
  1. change your email address to project address found here https://console.developers.google.com/iam-admin/serviceaccounts/project?project=PROJECTNAME

  2. Don't forget to copy link to 'Get Token' in an incognito window to the get the new token.

d2a2d
  • 1,176
  • 10
  • 12