Graph API | Error

Abhay Chandramouli 966 Reputation points
2022-08-31T16:00:27.477+00:00

Hi,
I am trying to hit graph api to create users. I am using a script to do this which approximately creates around 60 users/sec (calls the api 60/sec on avg)

But I am getting this error intermittently
requests.exceptions.ConnectionError: ('Connection aborted.', OSError("(104, 'ECONNRESET')"))

I have 3 scripts running so I guess on avg 180 api calls/sec for create users (/users : POST)

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,553 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,831 Reputation points
    2022-09-01T02:42:20.137+00:00

    Hi @Abhay Chandramouli , I think the cause of this problem may be that the server side cannot respond in a timely manner due to the speed of the request. This has a similar problem, you can try his solution, hope to help you, wish you all the best.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful