Share via

Postman to Sharepoint REST callout giving Error: read ECONNRESET issue

subrahmanyam Balu 0 Reputation points
2024-04-30T13:03:11.8133333+00:00

Per my test, the Permission Request XML in the article is incomplete. The correct XML should be like following

<AppPermissionRequests AllowAppOnlyPolicy="true">
  <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
</AppPermissionRequests>


You could recreate a sharepoint app only with the correct XML. And set the request like following

POST https://xxxx.sharepoint.com/sites/xxxxx/\_api/web/folders
Authorization: "Bearer " + accessToken
Accept: "application/json;odata=verbose"
Content-Type: "application/json;odata=verbose"

User's image

User's image

As mentioned in previous post, i followed the same steps but still issue is not resolved

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2024-05-01T02:34:25.8533333+00:00

    Hi @subrahmanyam Balu,

    Per my research, this should be a Network connection issue. Please refer to following article to fix the issue

    https://support.postman.com/hc/en-us/articles/6346313956887-Fixing-an-ECONNRESET-error


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


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.