Skip to content

Bug: Proxy plugin incorrectly parses API parameters into empty strings #59

@touale

Description

@touale

The proxy plugin incorrectly parses a valid cloud API request payload and converts structured objects into empty strings.

Expected Behavior

Given the following request body:

{
  "dimensions": {
    "dim_products": {
      "query_vector_text": "string",
      "weight": 0
    },
    "dim_partners": {
      "query_vector_text": "string",
      "weight": 0
    }
  },
  "global_filters": {
    "provinces": ["string"],
    "cities": ["string"],
    "is_listed": 0
  },
  "top_k": 0
}

The proxy should forward the payload without modifying its structure.

Actual Behavior

The proxy plugin incorrectly parses the payload as:

{
  "dimensions": "",
  "global_filters": "",
  "top_k": 0
}

Both dimensions and global_filters are reduced to empty strings, causing the downstream service to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions