Closed mpodwysocki closed 1 year ago
@tnorling Could you please take a look when you get a chance?
@mpodwysocki This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has been resolved please let us know by closing the issue. If your issue has not been resolved please leave a comment to keep this open. It will be closed automatically in 7 days if it remains stale.
Core Library
MSAL Node (@azure/msal-node)
Core Library Version
1.18.3
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
Trying to integrate the MSAL
PublicClientApplication
in theacquireTokenInteractive
method. This calls into theLoopbackClient
for thelistenForAuthCode
method. This method should set up an HTTP server and listen for when the server is actually listening. The code should acquire a server and handle listening gracefully. However, this crashes with an unhandled Promise rejection exception.Error Message
Msal Logs
No response
MSAL Configuration
Relevant Code Snippets
The code should be calling the listen method with a callback for the listener instead such as:
[node-tests] AuthError [NodeAuthError]: loopback_server_timeout: Timed out waiting for auth code listener to be registered. [node-tests] at new AuthError (/Users/matthewp/git/azure-sdk-for-js/common/temp/node_modules/.pnpm/@azure+msal-common@13.3.0/node_modules/@azure/msal-common/src/error/AuthError.ts:49:9) [node-tests] at new NodeAuthError (/Users/matthewp/git/azure-sdk-for-js/common/temp/node_modules/.pnpm/@azure+msal-node@1.18.3/node_modules/@azure/msal-node/src/error/NodeAuthError.ts:44:9) [node-tests] at Function.createLoopbackServerTimeoutError (/Users/matthewp/git/azure-sdk-for-js/common/temp/node_modules/.pnpm/@azure+msal-node@1.18.3/node_modules/@azure/msal-node/src/error/NodeAuthError.ts:92:16) [node-tests] at Timeout._onTimeout (/Users/matthewp/git/azure-sdk-for-js/common/temp/node_modules/.pnpm/@azure+msal-node@1.18.3/node_modules/@azure/msal-node/src/network/LoopbackClient.ts:54:41) [node-tests] at listOnTimeout (node:internal/timers:569:17) [node-tests] at processTimers (node:internal/timers:512:7) { [node-tests] errorCode: 'loopback_server_timeout', [node-tests] errorMessage: 'Timed out waiting for auth code listener to be registered.', [node-tests] subError: '' [node-tests] }