Skip to content

Conversation

@joshrotenberg
Copy link
Collaborator

Summary

This PR fixes the enterprise services list command which was using an incorrect endpoint.

Problem

The command was trying to use /v1/services which doesn't exist for GET requests. This caused the error:

Configuration error: Failed to list services

Solution

Changed to use /v1/local/services which is the correct documented endpoint.

Changes

  • Updated handle_services_list in services.rs to use /v1/local/services instead of /v1/services

Testing

Tested against live Redis Enterprise cluster:

REDIS_ENTERPRISE_URL="https://localhost:9443" \
REDIS_ENTERPRISE_USER="admin@cluster.local" \
REDIS_ENTERPRISE_PASSWORD="Redis123!" \
REDIS_ENTERPRISE_INSECURE="true" \
cargo run --bin redisctl -- enterprise services list

Successfully returns list of services and their status.

Fixes

The services list command was using /v1/services which doesn't exist
for GET requests. Changed to use /v1/local/services which is the
correct documented endpoint.

Fixes #322
@joshrotenberg joshrotenberg merged commit 48426c1 into main Sep 15, 2025
15 checks passed
@joshrotenberg joshrotenberg deleted the fix/services-list-endpoint branch September 15, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants