Share via

Sharepoint Online : Files API returning Internal Server Error

Anonymous
2021-02-26T02:57:59.623+00:00

Hi,

I am trying to query the files from Sharepoint Site using below GET Request.

https://xxxxxxx.sharepoint.com/_api/files

This API is returning the following error response.

<?xmlversion="1.0"encoding="utf-8"?>

<m:errorxmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<m:code>-1, Microsoft.SharePoint.Client.UnknownError</m:code>

<m:messagexml:lang="en-US">Unknown Error</m:message>

</m:error>

This API was working fine before. From last few days, we are facing this issue.

Can someone suggest some solution?

Thanks

Anuja

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. ZhengyuGuo 10,591 Reputation points Moderator
    2021-02-26T06:54:58.87+00:00

    Hi @Anonymous ,

    I tested the endpoint in my Tenant with PostMan, it return 200 reponse, working as expected like the capture below:

    72318-snipaste-2021-02-26-14-31-56.png

    This should be the server internal error in your Tenant, I suggest that you could open a service request in SharePoint Online Admin Center to contact Microsoft Support to do a Tenant level check.

    Thanks
    Best Regards


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.