Skip to content

Wrong response data type in validate #316

@DennyWeinberg

Description

@DennyWeinberg

I use the validate API and get the following response content:
"{\"error\": null}"

The problem is that it is a string, but it should be a json.

Complete response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Wed, 09 Aug 2023 09:07:39 GMT
Content-Length: 20
Connection: close

"{\"error\": null}"

In my python code I need to do the following (requests is used):

    response_data = response.json()

    return json.loads(response_data)  # Again a json loads

Note that this issue exists in ICL and WIRE, not in ACH.

Issue in WIRE

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions