Skip to content

Investigate AbortController() pre-emptively stopping requests #128

@MichaelSwigerAtBentley

Description

@MichaelSwigerAtBentley

In Desktop View Test in iTwin/viewer when attempting to get imodels for a given iTwin, the api call is stalling and being aborted:

Image

This causes the iModels page to never load, leaving 3 loading animations cycling forever, as described in this Issue

Removing the
signal: abortController.signal
from useIModelData.ts#L127 corrects the issue.

Removing React.StrictMode from the app also corrects the issue.

We should investigate why this is interfering with the request.

Additional info:
Running the request with the same accessToken and headers does return the iModels as normal, ruling out a clientId or auth issue.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions