Microsoft 365 Integration - times out after initial configuration

Status
Not open for further replies.

JohnGrenfell

New User
Joined
May 18, 2010
Messages
16
Reaction score
3
After running through the initial 365 setup we get a timeout. We are running version 18.0.2.307

Not seeing any errors in the verbose logs, tried limiting our app (users and groups) to reduce objects being past back as we have 20+k users but that hasn't helped (not sure if that limits objects back to the system)

2021/12/17 11:29:45.866|3220|0081|Inf|Elapsed Time is ms: 60503 Ordinary users quantity: 2914
2021/12/17 11:29:45.866|3220|0081|Inf|[System.Net.Http.HttpClient.Default.LogicalHandler] Start processing HTTP request GET https://graph.microsoft.com/v1.0/us...rPrincipalName,assignedPlans&$filter=userType eq %27Member%27&$skiptoken=RFNwdAoAAAAAAAAAAAAAFAAAAC7iVVlnRkZHmdrD20aE3HENAAAAAAAAAAAAAAAAAAAXMS4yLjg0MC4xMTM1NTYuMS40LjIzMzEGAAAAAAAB2v2jGDg5UkqlOVirK6NQYQEFAAAAAQAAAAA
2021/12/17 11:29:45.866|3220|0081|Inf|[System.Net.Http.HttpClient.Default.ClientHandler] Sending HTTP request GET https://graph.microsoft.com/v1.0/us...rPrincipalName,assignedPlans&$filter=userType eq %27Member%27&$skiptoken=RFNwdAoAAAAAAAAAAAAAFAAAAC7iVVlnRkZHmdrD20aE3HENAAAAAAAAAAAAAAAAAAAXMS4yLjg0MC4xMTM1NTYuMS40LjIzMzEGAAAAAAAB2v2jGDg5UkqlOVirK6NQYQEFAAAAAQAAAAA
2021/12/17 11:29:45.867|3220|0081|Trc|[Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor] Executing ObjectResult, writing value of type 'Integration.Office365.Storing.Office365Directory'.
2021/12/17 11:29:45.868|3220|0081|Trc|[Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Executed action ManagementConsoleJS.Controllers.Office365Controller.Get (3CXManagementConsole) in 60730.7795ms
2021/12/17 11:29:45.868|3220|0081|Trc|[Microsoft.AspNetCore.Routing.EndpointMiddleware] Executed endpoint 'ManagementConsoleJS.Controllers.Office365Controller.Get (3CXManagementConsole)'
2021/12/17 11:29:45.868|3220|0081|Dbg|#59175 (traceid=0HME0OMU8U49Q:0000000E) STOP: GET https:// 3cx.OURCOMPANY.COM:443/api/office365 processed 00:01:00.7317400
2021/12/17 11:29:45.868|3220|0081|Trc|[Microsoft.AspNetCore.Hosting.Diagnostics] Request finished HTTP/1.1 GET http:// 3cx.OURCOMPANY.COM:443/api/office365 - - - 200 1480 application/json;+charset=utf-8 60732.8961ms


Screenshot 2021-12-17 112516.png
 
  • Like
Reactions: Rifkan
Hi @NickD_3CX ,

We also face the same issue. We are trying to integrate 3CX with MS365 which has approx. 30K users.

As per the 3CX logs, looks like 3CX tries to fetch 500 users at a time and Management Console gets into a timeout after 1 minute.

Start processing HTTP request GET https://graph.microsoft.com/v1.0/users?$top=500&$select=I


2022/01/08 11:44:23.055|26119|0073|Inf|Elapsed Time is ms: 8245 Ordinary users quantity: 475
2022/01/08 11:44:31.344|26119|0094|Inf|Elapsed Time is ms: 16534 Ordinary users quantity: 962
2022/01/08 11:44:36.924|26119|0058|Inf|Elapsed Time is ms: 22114 Ordinary users quantity: 1417
2022/01/08 11:44:45.605|26119|0094|Inf|Elapsed Time is ms: 30794 Ordinary users quantity: 1874
2022/01/08 11:44:53.967|26119|0075|Inf|Elapsed Time is ms: 39156 Ordinary users quantity: 2325
2022/01/08 11:44:59.891|26119|0079|Inf|Elapsed Time is ms: 45080 Ordinary users quantity: 2784
2022/01/08 11:45:07.781|26119|0094|Inf|Elapsed Time is ms: 52970 Ordinary users quantity: 3250

We have configured an internet lease line to this 3CX server which can go up to 2MB/s maximum speed. Will bandwidth enhancement helps to sort this issue?

Also please note that we just need to enable SSO only 25 users in MS365 for 3CX and not for all 30K users.
 
Hi @NickD_3CX ,

We also face the same issue. We are trying to integrate 3CX with MS365 which has approx. 30K users.

As per the 3CX logs, looks like 3CX tries to fetch 500 users at a time and Management Console gets into a timeout after 1 minute.

Start processing HTTP request GET https://graph.microsoft.com/v1.0/users?$top=500&$select=I


2022/01/08 11:44:23.055|26119|0073|Inf|Elapsed Time is ms: 8245 Ordinary users quantity: 475
2022/01/08 11:44:31.344|26119|0094|Inf|Elapsed Time is ms: 16534 Ordinary users quantity: 962
2022/01/08 11:44:36.924|26119|0058|Inf|Elapsed Time is ms: 22114 Ordinary users quantity: 1417
2022/01/08 11:44:45.605|26119|0094|Inf|Elapsed Time is ms: 30794 Ordinary users quantity: 1874
2022/01/08 11:44:53.967|26119|0075|Inf|Elapsed Time is ms: 39156 Ordinary users quantity: 2325
2022/01/08 11:44:59.891|26119|0079|Inf|Elapsed Time is ms: 45080 Ordinary users quantity: 2784
2022/01/08 11:45:07.781|26119|0094|Inf|Elapsed Time is ms: 52970 Ordinary users quantity: 3250

We have configured an internet lease line to this 3CX server which can go up to 2MB/s maximum speed. Will bandwidth enhancement helps to sort this issue?

Also please note that we just need to enable SSO only 25 users in MS365 for 3CX and not for all 30K users.
I don't think that increasing the the speed beyond 20Mbps would make much difference, but as it is for a fairly small amount of users, I'll send you a PM with something you can try.
 
Hi Nick, do you have an ETA on V18 Update 3? Sorry to nag but really would like to get the integration up and running.
Not something I can share right now in regards to an ETA, but on a more positive note, we have made changes which seem to have improved this a lot and are prepping an environment to to test with 50k+ users.
 
Status
Not open for further replies.