Wolkenkit REST API for getting a read model list does return a heartbeat entry
I heard that wolkenkit also offers a REST API but didn’t find any documentation for that. I sifted through the sources and found some indications on how to do this.
I am using HTTPie for doing requests from the cli:
I have two entries in my
Is this a bug or may i have created that entry accidentally?
Disclaimer: I am one of the developers of wolkenkit.
This is actually neither a bug, nor did you create the entry accidentally 😉
Under the hood we stream JSON over HTTP, and we had the experience that some proxy servers (and similar things) caused issues when there were long pauses between two data packets.
In the past we changed the way how the read model is being delivered a few times, and I don’t think that this is really still required, so this is a holdover from the past. (If we were talking about the events route, the story would be different, here it is definitely still needed.)
In the library that we use under the hood, json-lines-client, we filter out the heartbeat events:
(Taken from the source code of json-lines-client 0.7.9)
For the moment, I’d suggest to introduce a similar logic to your code, so that you simply ignore these events (there may be more than one over time, and they do not need to be the first one).