-
Notifications
You must be signed in to change notification settings - Fork 80
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
observe property deserialized value (may) not (be) completely consistent #1294
Comments
Please ignore my |
IF the object is returned (compared to the actual event data) it clarifies also why DataSchema validation fails. |
No hurry, the data is still accessible. |
Can you share your file Thanks! |
The data is sent from my backend in python, not node-wot server side. I mainly use node-wot as a client. The payload is a simple number in this case. Is this what you wanted to know? The file is here anyway : https://gitlab.com/node-clients/phymotion-controllers-app/-/blob/main/src/components/movements.tsx?ref_type=heads |
The observable change events are pushed through HTTP SSE in may case. The following is the property affordance:
Either using
text/plain
orapplication/json
ascontentType
, one still only retrieves the entire event object, not theevent.data
Web browser gives the following output as expected from the event-stream. Server set header is
text/event-stream
:But what I get from node-wot (please ignore the stringification)
client side code is like this:
setting ignoreValidation to
false
causes schema error as wellI think the schema error is one reason why the
event.data
object must be returned instead of theevent
object itself.The text was updated successfully, but these errors were encountered: