A3 BAD User is authenticated but not connected
Hi all, I am running multiple times the same code using the JavaMail library and Java.
I am using the URL: "https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token" for generating tokens from both Client-Credentials and ROPC (Resource Owner Password Credentials) to authenticate.
The authentication is successful but while reading mail through the code in response, it fails intermittently. It returns success sometimes and sometimes it throws an error "A3 BAD User is authenticated but not connected" with the same credentials. The probability of throwing the error is 28%.
Questions:
- What is the reason behind this error?
- How can I fix this issue on my side?