5

When trying to connect to the Google IMAP service using the XOAUTH2 mechanism (https://developers.google.com/google-apps/gmail/xoauth2_protocol), I sometimes receive the following error response:

{"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}

I was wondering if anyone knew what exactly that status 400 was ...

Dominik
  • 1,194
  • 6
  • 9

2 Answers2

1

Error message seems to happen when you use an expired access token.

Dominik
  • 1,194
  • 6
  • 9
0

I had the same issue and I found the solution here. It is due to the Gmail scope("https://mail.google.com/") was missing, from the token generation process.

Nishant Bhardwaz
  • 924
  • 8
  • 21