Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

Timeout when authenticating in AWS Lambda

Open cbirts opened this issue 7 years ago • 1 comments

I get a timeout error when authenticating in AWS Lambda handler. I am unsure what to do or if I should try another group. I am able to use Office365-REST-Python-Client and execute my code successfully at the command line, however when I upload it to AWS Lambda it times out after the following code: ctxAuth = AuthenticationContext(url=settings['url'])

The timeout happens here: if ctxAuth.acquire_token_for_user(username=settings['user_credentials']['username'], password=settings['user_credentials']['password']):

cbirts avatar Aug 27 '19 21:08 cbirts

Solved this guys. It was an AWS Lambda NAT Gateway issue

cbirts avatar Aug 29 '19 17:08 cbirts