inhindsight / hindsight

Apache License 2.0
12 stars 8 forks source link

Receive Websocket events create brook errors in other apps #239

Open jessie-morris opened 4 years ago

jessie-morris commented 4 years ago

When a recieve websocket event is entered into the system, when this event arrives at other applications such as gather, persist etc, we get the included error below.

I believe this can be fixed by allowing other projects to properly reference all parts of this events struct.

11:39:40.196 [error] Unable to deserialize event: "{\"author\":\"beacon-position-receive\",\"create_ts\":1588160379584,\"data\":{\"connection\":{\"hibernate\":false,\"idle_timeout\":1440000,\"path\":\"/receive/ws\",\"port\":8081,\"version\":1,\"brook_struct\":\"Elixir.Accept.Websocket\"},\"dataset_id\":\"beacon-position-datasetid-6\",\"destination\":{\"endpoints\":[[\"hindsight-hindsight-kafka-bootstrap\",9092]],\"key_path\":[],\"name\":\"beacon-position-receive\",\"partitioner\":\"default\",\"partitions\":1,\"version\":1,\"brook_struct\":\"Elixir.Kafka.Topic\"},\"id\":\"beacon-position-accept-id-6\",\"subset_id\":\"beacon-position-subsetid-6\",\"version\":1,\"brook_struct\":\"Elixir.Accept\"},\"forwarded\":false,\"type\":\"accept:start\",\"brook_struct\":\"Elixir.Brook.Event\"}", error reason: :invalid_struct