Skip to content

post_request_failed error is thrown when network connection is disabled with MSAL2.17 #4114

Description

Core Library

MSAL.js v2 (@azure/msal-browser)

Core Library Version

2.17

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

None

Description

post_request_failed error is thrown when network connection is disabled with MSAL2.17

Error Message

code: "post_request_failed",
desc: "Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"

Msal Logs

NA

MSAL Configuration

{
auth: {
 clientId: "5e3ce6c0-2b1f-4285-8d4b-75ee78787346"
}
}

Relevant Code Snippets

NA

Reproduction Steps

  1. ensure there is no network
  2. call acquireTokenSilent using MSAL2 - this.userAgentApplication.acquireTokenSilent(request)

Expected Behavior

Error code should be no_network_connectivity

Identity Provider

Azure AD / MSA

Browsers Affected (Select all that apply)

Chrome

Regression

No response

Source

Internal (Microsoft)

Metadata

Metadata

Labels

bug-unconfirmedA reported bug that needs to be investigated and confirmedmsal-angularRelated to @azure/msal-angular packagemsal-browserRelated to msal-browser packagequestionCustomer is asking for a clarification, use case or information.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions