Pass NATS credentials explicitly: async-nats ignores userinfo in the URL

async_nats::connect() silently drops user:pass embedded in NATS_URL,
so the server rejected every connection with an authorization violation.
Parse the URL and feed credentials through ConnectOptions instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 22:33:20 +02:00
parent b4dfe0c5ea
commit 46bdad1629
3 changed files with 14 additions and 1 deletions
Generated
+1
View File
@@ -368,6 +368,7 @@ dependencies = [
"tower-sessions",
"tracing",
"tracing-subscriber",
"url",
"uuid",
"wasm-bindgen",
"web-sys",