Trying a UDP request with binary body but CONNECTED is always false #1264
Unanswered
Exagone313
asked this question in
Q&A
Replies: 2 comments 1 reply
-
In fact it doesn't send the right bytes. I used a netcat server and here is what it received: # echo -n -e "\xff\xff\xff\xffstatusResponse\ntest" | nc -u -l -p 27960 | hexdump -v -e '1/1 "%02x\n"'
ef
bf
bd
ef
bf
bd
ef
bf
bd
ef
bf
bd
67
65
74
73
74
61
74
75
73 It starts with (In this case, For the record: # echo -n -e "\xff\xff\xff\xffgetstatus" | hexdump -v -e '1/1 "%02x\n"'
ff
ff
ff
ff
67
65
74
73
74
61
74
75
73 The code only supports UTF-8 strings as body. I would need support for byte-typed body. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Opened issue #1265 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
My Gatus version is v5.23.2.
I'm trying to monitor an Enemy Territory server using a UDP endpoint with a body.
For this to work, it needs to send a query that starts with non-ascii characters (four 255 bytes).
I tried with this:
and this:
but
CONNECTED
is false in either case.(From my understanding, both forms are valid in YAML.)
This shell command works as expected:
Show response
For the record, the bytes sent are:
Any idea why it is not working?
PS: Feel free to (fairly) send requests to the server, I do not mind.
Beta Was this translation helpful? Give feedback.
All reactions