Skip to content

[BUG] [javascript][ApiClient] Fix request "responseType" #10833

@edouardmercier

Description

@edouardmercier

In the master branch, the JavaScript ApiClient uses the responseTypewith value string when the returnTypeparameter is set to String, which, on its turns attempts to the superagent XMLHttpRequest responseType with value string (which is not supported and generates a warning on the browser developer tools console with message "The provided value 'string' is not a valid enum value of type XMLHttpRequestResponseType.", see https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType) instead of text.

Could you please change line 522 of the file src/main/resources/Javascript/ApiClient.mustache with

request.responseType('text');

?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions