Skip to content

411 error returned when calling _api/contextinfo #7231

@shibu-123

Description

@shibu-123

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

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

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
411 error
winver

Expected behavior

411 error on the _api/ContextInfo rest api request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions