Using https instead of nats protocol #548
Unanswered
TobyDarmawan
asked this question in
Q&A
Replies: 1 comment
-
8222 port is for the http protocol based monitoring endpoint, to get the same results via NATS you need to use a system account user and then send a request to nc = await nats.connect("sys:sys@endpoint:4222"
inbox = nc.new_inbox()
sub = await sub.subscribe(inbox)
await nc.publish("$SYS.REQ.SERVER.PING.HEALTHZ", b'', reply=inbox)
# Check responses received by servers
for i in range(0,3):
msg = await sub.next_msg()
print(msg) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to send a request to the health endpoint (i.e. 8222/healthz), but the servers currently uses
nats://
instead ofhttps://
, which is a protocol not supported by curl. How would I send a request like:curl "https://<hostname>:8222/healthz"
instead ofcurl "nats://<hostname>:8222/healthz"
Beta Was this translation helpful? Give feedback.
All reactions