Skip to content

fix(enterprise): services list command returns error/empty response #322

@joshrotenberg

Description

@joshrotenberg

Problem

The enterprise services list command returns an error or empty response that causes jq parsing to fail.

Steps to Reproduce

redisctl enterprise services list

# Returns error or malformed response

# When piped to jq:
redisctl enterprise services list -o json | jq '.'
# jq: parse error: Invalid numeric literal at line 1, column 2

Expected Behavior

Should list internal Redis Enterprise services and their status.

Likely Causes

  1. Services endpoint might be node-specific (/v1/nodes/{node}/services)
  2. Incorrect endpoint path in handler
  3. Services endpoint might require different authentication or be internal-only

Investigation Needed

  • Check if services is a node-level endpoint: /v1/nodes/1/services
  • Test with raw API: redisctl api enterprise get /v1/services
  • Verify endpoint exists in Redis Enterprise API documentation
  • May need to use /v1/local/services instead

Acceptance Criteria

  • Command returns list of services with their status
  • Output is valid JSON/YAML/Table format
  • Add integration test for this command

Part of #315

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