# Error in #ZX1: instructions for “Query entries from stream”

**URL:** <https://forum.codecrafters.io/t/error-in-zx1-instructions-for-query-entries-from-stream/26>\
**Category:** Challenges\
**Tags:** challenge:redis\
**Created:** [April 1, 2024, 12:29pm UTC](https://forum.codecrafters.io/t/error-in-zx1-instructions-for-query-entries-from-stream/26 "2024-04-01T12:29:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [April 1, 2024, 12:29pm UTC](https://forum.codecrafters.io/t/error-in-zx1-instructions-for-query-entries-from-stream/26/1 "2024-04-01T12:29:13Z")

</div>

Copying from [Discord](https://discord.com/channels/673463293901537291/771740310404726825/1223384901873700894):

I believe there’s a slight error in the `Query entries from stream` description The example says the response should be formatted like this, but I believe there should be a additional `*2\r\n` before the second entry

```auto
*2\r\n
*2\r\n
$15\r\n1526985054069-0\r\n
*4\r\n
$11\r\ntemperature\r\n
$2\r\n36\r\n
$8\r\nhumidity\r\n
$2\r\n95\r\n
+*2\r\n
$15\r\n1526985054079-0\r\n
*4\r\n
$11\r\ntemperature\r\n
$2\r\n37\r\n
$8\r\nhumidity\r\n
$2\r\n94\r\n

```

This passes the tests and redis-cli parses the response correctly with this addition

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [April 3, 2024, 5:31pm UTC](https://forum.codecrafters.io/t/error-in-zx1-instructions-for-query-entries-from-stream/26/2 "2024-04-03T17:31:04Z")

</div>

Fixed:

> <https://github.com/codecrafters-io/build-your-own-redis/commit/cc081192e1bb5e7ed1b39860d0d31691541289f8>

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [April 30, 2024, 10:59pm UTC](https://forum.codecrafters.io/t/error-in-zx1-instructions-for-query-entries-from-stream/26/3 "2024-04-30T22:59:28Z")

</div>

Closed on April 30, 2024, 10:59pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [June 4, 2024, 5:55am UTC](https://forum.codecrafters.io/t/error-in-zx1-instructions-for-query-entries-from-stream/26/4 "2024-06-04T05:55:43Z")

</div>

Note: I’ve updated the title of this post to include the stage ID (#ZX1). You can learn about the stages rename here: [Upcoming change: Stages overhaul](https://forum.codecrafters.io/t/upcoming-change-stages-overhaul/375)
