Skip to content

Fixed stream info request for strict mode#1887

Merged
wallyqs merged 1 commit intomainfrom
maurice/stream-info-strict
Jun 23, 2025
Merged

Fixed stream info request for strict mode#1887
wallyqs merged 1 commit intomainfrom
maurice/stream-info-strict

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

The (new) JS stream info API would log the following in the server:

Invalid JetStream request '$G > $JS.API.STREAM.INFO.<KV_bucket_name>': json: unknown field "total"

This was due to the inclusion of the total field. Should use the apiPagedRequest instead. Current 2.11 servers log this warning, and requests will be fully rejected if strict mode is turned on (which might become the default for 2.12).

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@wallyqs wallyqs merged commit 1268c80 into main Jun 23, 2025
6 checks passed
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 84.778% (+0.02%) from 84.76%
when pulling 87fa360 on maurice/stream-info-strict
into 0879849 on main.

@piotrpio piotrpio mentioned this pull request Jul 29, 2025
@piotrpio piotrpio deleted the maurice/stream-info-strict branch October 10, 2025 08:49
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.

3 participants