Skip to content

SPSiteManager API started returning an unexpected Status code #10746

@kstat

Description

@kstat

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

SharePoint REST API

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

No response

Describe the bug / error

GET request to /_api/SPSiteManager/status for a non-existent Site URL appears to now be returning a Status Code value of '1' (i.e., Provisioning) as opposed to expected Status Code value of '0' (i.e., Not Found), as per status code definitions here.

Note that this API call was correctly returning Status Code '0' until last week, and appears to have started returning a different response as of Friday 3/27.

Steps to reproduce

  1. Establish a PnP PowerShell session with at-least Write access to the root site in tenant.
  2. Invoke PnP PS cmdlet (or you can use any other method to invoke a GET request to SPO REST API)
Invoke-PnPSPRestMethod -Method Get -Url "https://tenant.sharepoint.com/_api/SPSiteManager/status?url='https://tenant.sharepoint.com/sites/doesnotexist'"

Expected behavior

Expected response is:

SiteId SiteStatus SiteUrl
0

Received response is:

SiteId SiteStatus SiteUrl
1

Metadata

Metadata

Assignees

Labels

sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions