-
Notifications
You must be signed in to change notification settings - Fork 1k
411 error returned when calling _api/contextinfo #7231
Copy link
Copy link
Closed
Labels
area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Metadata
Metadata
Assignees
Labels
area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Chrome version : Version 92.0.4515.107 (Official Build) (64-bit)
SPFX - 1.6.0
Describe the bug / error
We have a form built using SPFX solution. On save or submit action sharepoint rest api is invoked.
When user clicks on save or submit the form get stuck and does not perform any action. On the browser console log we could see 411 error returned (content length required) on the rest api _api/ContextInfo request(screenshot attached).
We tried in chrome, edge and mozilla browser all shows the same result. In some blogs, there were solutions to add content-length:0 in the header. But this value is been automatically been added by all the major browsers if there is no content in post request.
We tried clearing browser cache and clearing cookies. All these resolution failed. Any suggestion on how to resolve this issue ?
Steps to reproduce
The issue happened to a particular user and he did a recent windows update in win 10 machine. Post that when he tries to submit a form. the browser does not respond and in the console log he gets 411 error issue


Expected behavior
411 error on the _api/ContextInfo rest api request.