-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected parse success of "transport_params": [{"..."}, {}] #70
Comments
I agree, looks like a flaw in the cpprestsdk json parser. I'll investigate. |
Yes, it was a C++ REST SDK issue: fix at microsoft/cpprestsdk#1130 |
Necessary patch merged to cpprestsdk master. I imagine there'll be a release along soon... |
C++ REST SDK v2.10.14 is tagged. I haven't tested the release yet. |
Now tested, and I can't quite recommend it unconditionally due to microsoft/cpprestsdk#1202. |
C++ REST SDK v2.10.14 is released. |
Hi, I was testing some changes and accidentally ran a command like
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X PATCH http://d13:3215/x-nmos/connection/v1.0/single/senders/b0ec9bcf-d46d-5539-adc5-421bd4757166/staged -d '{"transport_params": [{ "10.10.164.211" }, {}], "activation": {"mode": "activate_immediate"}}'
not realizing I forgot the key that went with the value, and then not understanding why my intended change wasn't being performed by the node despite the successful response from it:
{"activation":{"activation_time":"1556732522:76546184","mode":"activate_immediate","requested_time":null},"master_enable":false,"receiver_id":null,"transport_params":[{"destination_ip":"auto","destination_port":"auto","rtp_enabled":true,"source_ip":"auto","source_port":"auto"},{"destination_ip":"auto","destination_port":"auto","rtp_enabled":true,"source_ip":"auto","source_port":"auto"}]}
The messages logged by the node didn't indicate anything wrong, either
I don't believe this should be valid JSON. Is this a parser problem?
I checked this against 8d3f05a using my usual build environment -- cross-compiling from Ubuntu Linux to home-grown Linux using gcc 6.2 and libc 2.17.
The text was updated successfully, but these errors were encountered: