Graph API | Error

Abhay Chandramouli 796 Reputation points

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 Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
870 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,711 Reputation points

    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