pnp/PnP

CreateGroupEx started giving siteUrl empty in response

praveenbattula opened this issue · 2 comments

Started seeing the issue again (2nd time since January). CreateGroupEx endpoint accepts parameters, creates group but it won't create SPO site yet. As a result it returns null for siteurl in the response. After a very long time (sometimes 45 mins) the site in SharePoint gets created.

####Which PnP repository should you use to report the issue?####
Any version of the PnP does the same which uses this CreateGroupEx to create sites.

Category

[ x] Bug
[ ] Enhancement

Environment

[ x] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013

Expected or Desired Behavior

Today if we like to create Office 365 Groups via SharePoint online then we are using CreateGroupEx api. This api is supposed to provision group resources and also a SharePoint site collection. As a result it should return group id and site url in the response.

Observed Behavior

At the moment when we call this API we see that group is being created and returns only groupid in the response. We see SharePoint site is not created yet, it takes long time to provision. Which resulted the siteUrl as null in the response for API.

Steps to Reproduce

Call the rest api CreateGroupEx with parameters, the request will be 200. But actually only group is being created, but site is not. siteurl is showing null in the response.

Please let me know if anyone else is using this API and any other recommendations to create groups via end point.

I see it worked for couple of minutes and started throwing the same issues again. I concluded too fast this issue resolved automatically. But it is not. Any ideas?

Created the issue under pnpjs project as it is active now. Closing it here.

pnp/pnpjs#740