lim
  • lim
  • 51.5% (Neutral)
  • Newbie Topic Starter
2 years ago
Hi
I have a program run as window service.
every 15s check mailbox, if new mail arrived, download it

We upgraded EAGetMail from 4.6.5.5 to 5.2.5.6
because changing login with basic auth to OAuth2.0

I login O365 account and saved token in txt like your sample project
I could access the mailbox and download it correctly (using same token),
But it failed after serveral minutes, I got A004 Bad User is authenticated but not connected
after that every connect got A002 NO AUTHENTICATE failed.

re-login could work another 5-30 mins, but it need login manually.

Is there something need setting? or other method to access mailbox?
Please help, Thank you
ivan
  • ivan
  • 100% (Exalted)
  • Administration
2 years ago
do you refresh the token by refresh token? Please email to our support email address for assistance.
lim
  • lim
  • 51.5% (Neutral)
  • Newbie Topic Starter
2 years ago
OK, I refresh token and it work again,
Sometime it still got Error A004
so I refresh the token even it not yet expire.
Thanks for help
johnm
  • johnm
  • 50.75% (Neutral)
  • Newbie
2 years ago
I have a script that runs every 10 minutes or so that connects to O365. Occasionally this error pops up and typically it works again on the next run.

While I haven't found the cause of the error yet, one theory is that it is related to a throttling of the service by Microsoft. This is something we have experienced with O365 in the past, although with different symptoms.

If I find an explanation or solution I will post it here.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.