Skip to content

Conversation

@pieperm
Copy link
Collaborator

@pieperm pieperm commented Apr 4, 2024

Closes #2165

After testing out the front-end APIs, I determined that the problem originated from transitioning from axios to fetch. In axios, specifying a responseType of blob would convert the response payload to a Blob object, which is then passed to the file downloader. With fetch, this conversion has to be done manually, but the implementation was only handling JSON and text responses. This modifies the resolve method to return a blob in the payload if the "Content-Type" header is "text/csv".

An alternative fix could be to include responseType in the request payload and determine the datatype for the response payload based on that, similar to axios.

Copy link
Contributor

@S78901 S78901 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@mkimberlin mkimberlin merged commit b5ae1f1 into develop Apr 5, 2024
@mkimberlin mkimberlin deleted the bugfix-2165/member-export-report-not-working branch August 27, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The member export report is not working

4 participants