Skip to content

fix account info deser failure on servers with tiered jetstream#1604

Open
xanderio wants to merge 1 commit into
nats-io:mainfrom
xanderio:main
Open

fix account info deser failure on servers with tiered jetstream#1604
xanderio wants to merge 1 commit into
nats-io:mainfrom
xanderio:main

Conversation

@xanderio

Copy link
Copy Markdown

The api field doesn't exist in the tier response object, this was confirmed by looking at the relavent go code 1.

nats-servers without tiered jetstream, it seems that this is only included if JWT based authentiction is in use, don't include the tier object and field at all. That allows clients to connect without running into the deser error.

The `api` field doesn't exist in the tier response object, this was
confirmed by looking at the relavent go code [1].

nats-servers without tiered jetstream, it seems that this is only
included if JWT based authentiction is in use, don't include the `tier`
object and field at all. That allows clients to connect without running
into the deser error.

[1]: https://github.com/nats-io/nats-server/blob/717c7d17efb387b6db31ed3a0301d1250b073207/server/jetstream.go#L77
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.

1 participant