Skip to content

withCredentials is undefined in retrieveSeriesMetadata(), causing a crash #105

@buralog

Description

@buralog

Bug Report: Undefined withCredentials Variable in retrieveSeriesMetadata function

Description:

I encountered an issue while using the OHIF Viewer. The application crashed with the following error:

TypeError: withCredentials is undefined
    at retrieveSeriesMetadata (api.js:XX)

Problematic Code: api.js / retrieveSeriesMetadata function

const request = getRequestOptions(options.request);
return this._httpGetApplicationJson(url, {}, false, withCredentials);

This issue appears to be caused by #103 - add request option to retrieve instances because previous version (0.10.4) works fine.
Additionally, other occurrences of withCredentials variable in the api.js might also need to be addressed.

Environment

  • OHIF Viewer version: v3.9.0
  • dicomweb-client version: v0.11.0
  • Browser: Chrome v133

Metadata

Metadata

Assignees

No one assigned

    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