-
Notifications
You must be signed in to change notification settings - Fork 230
Closed
Description
Bug Report
Prerequisites
I use the below codes to init the client in my React app, NOTE the "timeout" value,
this._client = Client.initWithMiddleware({
authProvider,
fetchOptions: {
timeout: 15 * 1000,
},
});
While when I calling the MS Graph API via the client, the timeout of the fetch action does not work.
Steps to Reproduce
- Init the client with the above code
- Turn off the network connection
- Invoke the API request via the above client
- The fetch request is in "Pending" status over 15s seen from the DevTools in the Edge browser.
Expected behavior: [What you expected to happen]
The fetch request should be timeout after 15s
Actual behavior: [What actually happened]
The fetch request is still Pending
Additional Context
SDK Version - [SDK version you are using] 2.2.1
- Node (Check, if using Node version of SDK)
Node Version - [The version of Node you are using] node 14
- Browser (Check, if using Browser version of SDK)
Browser Name - [The name of Browser that you are using for SDK] MS Edge
Version - [The version of the browser you are using]
2.2.1
Thanks.
AB#9002