Skip to content

[BUG] Assign shows BAD REQUEST pills for valid stat.ee POST #897

@matKlju

Description

@matKlju

Bug description:

The Assign element does not correctly parse and render response “pills” for a successful POST request to https://andmed.stat.ee/api/v1/en/stat/PA101.
Although a valid response is received (HTTP 200), the generated pills show “BAD REQUEST” in their hover tooltips instead of valid response paths.

Expected behavior:

  • For a successful POST response, the Assign element should:
    • Parse the response body
    • Generate draggable pills for usable response fields/paths
  • Pills must not indicate “BAD REQUEST” when the request succeeds.

Screenshots:

N/A

Additional information:

  • Endpoint: https://andmed.stat.ee/api/v1/en/stat/PA101
  • Method: POST
  • Request body:
    {
      "query": [
        {
          "code": "Näitaja",
          "selection": {
            "filter": "item",
            "values": ["GR_W_AVG"]
          }
        },
        {
          "code": "Tegevusala",
          "selection": {
            "filter": "item",
            "values": ["TOTAL"]
          }
        },
        {
          "code": "Vaatlusperiood",
          "selection": {
            "filter": "item",
            "values": ["2024"]
          }
        }
      ],
      "response": {
        "format": "json-stat2"
      }
    }

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3.2

Type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions