sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

API Management HTTP 500 Errors

Open JakeStanger opened this issue 7 years ago • 32 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Pending and approved requests are fetched and shown.

Observed Behavior

The endpoints PermissionGrants and PermissionRequests error with "Unknown Error". No API approvals of any kind are shown.

On screen: image

Network tab in Chrome console: image

Request response (same for both): image

PnP is also failing to authenticate with iframe sandboxing permission errors. I presume granting API permissions will fix this. If not I will open another issue.

Steps to Reproduce

Visit API management page on https://brandservicesuk-admin.sharepoint.com. I have not experienced this issue on other tenants.

JakeStanger avatar May 16 '19 13:05 JakeStanger

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar May 16 '19 13:05 msft-github-bot

There are known issues with the API Management page in the SPO Admin Center that MSFT is working on... I've seen these in my tenants. Just refresh the page and they usually go away.

@JakeStanger said:

PnP is also failing to authenticate with iframe sandboxing permission errors

Not sure what you mean by "IFrame sandboxing" in the context of PnP... can you elaborate? PnP what (there are A LOT of PnP "things" 😄 )?

The API management page is still usable and you can always use the PnP PowerShell or Office 365 CLI options for viewing & managing API permission requests / grants.

andrewconnell avatar May 16 '19 14:05 andrewconnell

I meant to type more about PnP and apparently just...didn't...

Specifically I'm refering to the PnP Graph Node library, which when trying to get an auth token fails: image Followed by: image

I've refreshed the page many times and tried another browser but these errors are constant. I have just tried in the O365 CLI tool and I'm getting the same problem there: image

JakeStanger avatar May 16 '19 14:05 JakeStanger

What URL & account are you logged in with when running the command via the CLI? You need to be a global tenant admin logged into the admin site (https://tenant-admin.sharepoint.com)

I just tried it with a few tenants and it's working for me...

image

Since it's working in other tenants, that tells me that the endpoints are not at issue and it's not likely a system-wide issue.

If you are logged into the tenant admin site as a global admin, you may need to open a ticket with MSFT as this implies something specific is going on with your tenant.

andrewconnell avatar May 16 '19 15:05 andrewconnell

@lucabandMSFT and @lahuey for visibility

patmill avatar May 16 '19 15:05 patmill

Yeah I'm logged in to the admin tenant. I'll open a ticket, thanks.

JakeStanger avatar May 16 '19 15:05 JakeStanger

I'll go ahead and close this then as it seems like it's localized to your tenant... if you disagree @JakeStanger just reply and I'll reopen.

andrewconnell avatar May 16 '19 15:05 andrewconnell

Can confirm the same error on our tenant. image

gunfus avatar May 17 '19 09:05 gunfus

Can you re-open since this appears to be a wider issue?

JakeStanger avatar May 17 '19 15:05 JakeStanger

We still have this issue and after we opened a ticket we got the response that this was not within their scope and got referred to: https://msdn.microsoft.com/en-us

gunfus avatar May 23 '19 06:05 gunfus

My ticket is still in the process of being reviewed by the escalation team, so I'll update you if they give any useful information.

JakeStanger avatar May 23 '19 08:05 JakeStanger

@JakeStanger, does the user (which I suspect has is both SharePoint Tenant Admin AND tenant Global admin, right?) has access to the App Catalog?

lucabandMSFT avatar Jun 01 '19 05:06 lucabandMSFT

Yes, this is the tenant admin user which created the app catalog and has uploaded apps to it successfully.

JakeStanger avatar Jun 01 '19 17:06 JakeStanger

@JakeStanger , thanks. just one more thing .. @andrewconnell previously asked if the user was BOTH SharePoint Tenant Administrator as well as Tenant Global Administrator. I think I missed the answer to that question. Can you please confirm that the use who's accessing the Web API page has both roles?

Thanks a lot for helping us troubleshooting this issue

lucabandMSFT avatar Jun 05 '19 17:06 lucabandMSFT

It have full control over the Azure portal for the tenant, so I would assume it's a tenant global admin? I will double check tomorrow if the two don't equal each other. It's definitely a SP tenant admin.

JakeStanger avatar Jun 05 '19 17:06 JakeStanger

HI @JakeStanger , have you had the opportunity to check?

lucabandMSFT avatar Jun 13 '19 20:06 lucabandMSFT

Hi sorry, yes it is a tenant admin. I'm still awaiting any progress on the ticket I opened; it's just being passed around at the moment with nobody claiming it.

JakeStanger avatar Jun 13 '19 20:06 JakeStanger

thanks @JakeStanger . can you please copy here the screenshot of your AAD application principals and the manifest of it? Also, is that possible for us to accessing that tenant for investigation (aka: is that a test tenant? or it is a production environment)?

lucabandMSFT avatar Jun 21 '19 20:06 lucabandMSFT

It's a production environment however it is not live yet. I personally don't have the authority to grant you access but I can pass the request on.

Could you explain what you mean by application principals? Once I'm clear on that I'll grab you a screenshot and dump of the SP registration manifest.

JakeStanger avatar Jun 21 '19 21:06 JakeStanger

Thanks, here's an example of a tenant. basically if you go to this adders and log in as global admin: https://aad.portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade. you can open the "sharePoint Online Client Extensibility Web Application Principal" app principal. There you can click on "Manifest" and show us what it looks like: image

lucabandMSFT avatar Jun 21 '19 21:06 lucabandMSFT