Failed to send message to uns: schema validation f...
# umh-support
j
@Brian Pribe — gestern um 20:16 Uhr So I am absolutely not formatting this correctly: How should a basic timeseries-number datamodel be modelled?? This is what I got that I'm trying to map to the umh-core broker [3:20:01 PM] - [left: 28 s] received log line: level=error msg="Failed to send message to uns: schema validation failed for message 0 with topic 'umh.v1.MACH-Controls-LLC.Toledo._current_v1.current': schema validation failed for contract '_current' version 1 against all available schemas. Last error: schema validation failed for subject '_current_v1-timeseries-number': Property 'fields' does not match the schema. Please check your payload format and ensure it matches the registered schema" @service=benthos label="" path=root.output Bild Brian Pribe — gestern um 20:53 Uhr Learned that passing the payload directly doesn't work all that well. Mapping to the meta variables did work. I tested with the msg.payload just being {"value":0.4,"timestamp_ms":176166451647}
where did you get the "fields" from?
b
“Property “fields” does not match schema”
j
no, i meant why did you wanted to send "fields"? my LLM guessed that you were using an LLM which looked into some (poorly documented) code on our side and therefore got confused about the right payload format
2 Views