informatikr / hedis

A Redis client library for Haskell.
http://hackage.haskell.org/package/hedis
BSD 3-Clause "New" or "Revised" License
327 stars 121 forks source link

Hedis fails to decode xstreamInfo response in case when the stream is empty #173

Closed qnikst closed 2 years ago

qnikst commented 2 years ago

If you try to run xstreamInfo on a newly created stream Redis fails with Bulk Nothing error instead of providing the result.

It happens because there is no data in the first-entry and the last-entry fields of the response.