Share via

Internal Server Error on FIleHandler

Anonymous
2016-10-14T12:44:36+00:00

When opening any document library we experience an 500 Internal Server error on a call to GetByType('FileHandler'). We assumed this was due to our development of a custom type handler.

However, this problem is reproducible on all SharePoint online instances  we have access to, not just our development instance. We have asked on external person to verify this as well and he was able to reproduce as well.

The _api/apps/GetByType('FileHandler') call results in the following error message:

{"odata.error":{"code":"-1, Microsoft.Azure.ActiveDirectory.GraphClient.AuthorizationException","message":{"lang":"en-US","value":"Insufficient privileges to complete the operation."}}}

Can you please investigate?

Please let us know if we can provide you with additional information to diagnose this issue.

Screenshot: ![](https://learn-attachment.microsoft.com/api/attachments/23ca4c43-b498-41d4-bf40-b6334a597ede?platform=QnA)

[Personal information is masked by Jiaxing Bian MSFT]

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-10-26T03:10:42+00:00

Hi All,

We have received updates from our escalation team that the issue has been resolved and the ticket has been closed. Therefore, we’d like to share a summary here.

============

Description:

When accessing SharePoint document libraries in Chrome, you can see the “GET https://contoso.sharepoint.com/\_api/apps/GetByType('FileHandler') 500 (Internal Server Error)” from the Chrome Development Tool.

Solution:

Our engineering team has provided a fix to resolve this issue.

============

If you have any other questions feel free to post us a new thread, we will continue to assist you from there.

Regards,

Spike

Was this answer helpful?

0 comments No comments

16 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-10-18T08:58:10+00:00

    Hi Jiaxing,

    I have configured a FileHandler add-in, which I can verify by using the application endpoint from Microsoft Graph: https://graph.microsoft.io/en-us/docs/api-reference/beta/api/application_list. However, the problem does still exist. 

    We did find something weird in the suiteextensions.js file, coming from https://s****c.sharepointonline.com/bld/_layouts/15/16.0.5806.1206/online/scripts/suiteextensions.js . That file seems to load some test filehandlers that we did not create. Does this have something to do with the issue?

    Thanks!

    Tom 

    (Private information is masked by Jiaxing Bian MSFT)

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-10-18T08:27:32+00:00

    Hi Tom,

    With further investigation, we know the “500 Internal Server Error” is an expected behavior.

    The GetByType function is used to get the add-in data from Azure according to different add-in file types. When opening a SharePoint document library, it will try to call this function no matter whether there’s Azure Add-in or not. If there’s no such add-in, it will fail, but no impact.

    Regards,

    Jiaxing

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-10-17T07:45:59+00:00

    Hi Tom,

    We have received your account information via PM.

    To move on, we also need to trace some logs about it. Please use the method I provided in the Private Message.

    Regards,

    Allan

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2016-10-14T22:26:01+00:00

    Hi Tom,

    We’d like to collect your tenant information so that we can determine whether we need to escalate the issue.

    To protect your privacy, I have sent you a private message for the details. You can access it via the link below:

    https://answers.microsoft.com/en-us/privatemessages/list

    Regards,

    Jiaxing

    Was this answer helpful?

    0 comments No comments