Skip to content

Found 1 errors while parsing the search expression. #11904

Description

@JellyTony

Bug description

When selecting or filtering by environment in the Services page, the services API returns an invalid input error.

The failing API is:

GET https://xxxx/api/v2/services

Response:

{
  "status": "error",
  "error": {
    "type": "invalid-input",
    "code": "invalid_input",
    "message": "Found 1 errors while parsing the search expression.",
    "url": "https://signoz.io/docs/userguide/search-troubleshooting/#key-fieldname-not-found",
    "errors": [
      {
        "message": "key `deployment.environment` not found"
      }
    ]
  }
}

The page shows the error:

Found 1 errors while parsing the search expression.

It looks like the query generated by the Services page uses the field deployment.environment, but this key does not exist in the current data/schema.

Expected behavior

The Services page should load correctly after selecting an environment.

If deployment.environment is missing, SigNoz should either:

  1. handle the missing key gracefully;
  2. avoid generating a query with a non-existing field;
  3. show an empty result instead of returning an API error;
  4. or fallback to the correct environment/resource attribute if available.

How to reproduce

  1. Open the SigNoz UI.
  2. Go to the Services page.
  3. Select or filter by an environment.
  4. The page fails to load services and the API /api/v2/services returns an error.

Version information

  • Signoz version: <please fill in>
  • Browser version: <please fill in>
  • Your OS and version: <please fill in>
  • Your CPU Architecture(ARM/Intel): <please fill in>

Additional context

The error message indicates that the search expression references a missing key:

key `deployment.environment` not found

This may happen when the telemetry data does not contain the deployment.environment resource attribute, but the Services page still generates a query using it.

Thank you for your bug report – we love squashing them!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions