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
Hi! When calling the REST API to query a node that returns data that cannot be encoded into a UTF-8 string, the REST API returns nothing to the caller. I think it would be expected to return the raw payload, especially when the encoding on Zenoh and the Content-Type are not set to text, or at least to return an error.
This looks to be because the try_to_string is called on the payload bytes here.
Describe the bug
Hi! When calling the REST API to query a node that returns data that cannot be encoded into a UTF-8 string, the REST API returns nothing to the caller. I think it would be expected to return the raw payload, especially when the encoding on Zenoh and the Content-Type are not set to text, or at least to return an error.
This looks to be because the
try_to_string
is called on the payload bytes here.zenoh/plugins/zenoh-plugin-rest/src/lib.rs
Lines 222 to 226 in 70820dd
To reproduce
System info
The text was updated successfully, but these errors were encountered: