You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used nats-kafka bridge, but I have a password that looks like this:
dummyPass: 5e7bcd-abc10
This was an environment variable, $PASSWORD in the .conf file, while parsing I got:
'Expected a top-level value to end with a new line, comment or EOF, but got '7' instead.'
Expected behavior
Successfully parse variable from Env.
Server and client version
Server and Client v2.10.5 and current main
Host environment
nats://localhost:4222
Steps to reproduce
Add this test into conf/parse_test.go
funcTestParseStringThatLooksLikeHex(t*testing.T) {
ifvmap, err:=Parse(fmt.Sprintf("%s=%s", "pk", "5e7bcd-abc10")); err!=nil {
t.Fatalf("This is a valid sring but I got err: %s", err.Error())
} else {
fmt.Print(vmap)
}
}
Observed behavior
I used nats-kafka bridge, but I have a password that looks like this:
This was an environment variable, $PASSWORD in the .conf file, while parsing I got:
'Expected a top-level value to end with a new line, comment or EOF, but got '7' instead.'
Expected behavior
Successfully parse variable from Env.
Server and client version
Server and Client v2.10.5 and current main
Host environment
nats://localhost:4222
Steps to reproduce
Add this test into conf/parse_test.go
source based from: https://github.com/nats-io/nats-server/blob/v2.10.11/conf/parse.go#L402
The text was updated successfully, but these errors were encountered: