API Management HTTP 500 Errors
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:

Network tab in Chrome console:

Request response (same for both):

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.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
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.
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:
Followed by:

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:

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...

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.
@lucabandMSFT and @lahuey for visibility
Yeah I'm logged in to the admin tenant. I'll open a ticket, thanks.
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.
Can confirm the same error on our tenant.

Can you re-open since this appears to be a wider issue?
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
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, does the user (which I suspect has is both SharePoint Tenant Admin AND tenant Global admin, right?) has access to the App Catalog?
Yes, this is the tenant admin user which created the app catalog and has uploaded apps to it successfully.
@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
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.
HI @JakeStanger , have you had the opportunity to check?
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.
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)?
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.
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:
