-
Notifications
You must be signed in to change notification settings - Fork 1k
Labels
bugSomething that isn't workingSomething that isn't working
Description
What versions & operating system are you using?
System:
OS: macOS 14.6.1
CPU: (8) arm64 Apple M1 Pro
Memory: 157.92 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.20.0 - /Users/azuma/.nvm/versions/node/v22.20.0/bin/node
npm: 10.9.3 - /Users/azuma/.nvm/versions/node/v22.20.0/bin/npm
pnpm: 10.10.0 - /Users/azuma/Library/pnpm/pnpm
npmPackages:
wrangler: ^4.43.0 => 4.43.0
Please provide a link to a minimal reproduction
No response
Describe the Bug
Similar to issue #10508, the wrangler vectorize list
and wrangler vectorize list-metadata-index
commands also output an extra log message as the first line when the --json
flag is used.
This makes the stdout invalid JSON and breaks piping to tools like jq
.
To Reproduce (list
):
$ pnpm wrangler vectorize list --json
Actual Output (list
):
📋 Listing Vectorize indexes...
[
{
"created_on": "2025-10-18T13:28:30.259277Z",
"modified_on": "2025-10-18T13:28:30.259277Z",
"name": "test-index",
"description": "",
"config": {
"dimensions": 768,
"metric": "cosine"
}
}
]
To Reproduce (list-metadata-index
):
$ pnpm wrangler vectorize list-metadata-index test-index --json
Actual Output (list-metadata-index
):
📋 Fetching metadata indexes...
[
{
"propertyName": "test_metadata_index",
"indexType": "String"
}
]
Expected Output (for both):
The output should be only the valid JSON array, starting with [
and without any preceding log lines.
Please provide any relevant error logs
No response
Metadata
Metadata
Assignees
Labels
bugSomething that isn't workingSomething that isn't working
Type
Projects
Status
In Progress