# \#JW4 may be wrong

**URL:** <https://forum.codecrafters.io/t/jw4-may-be-wrong/10324>\
**Category:** Challenges\
**Tags:** challenge:redis\
**Created:** [May 11, 2025, 1:33am UTC](https://forum.codecrafters.io/t/jw4-may-be-wrong/10324 "2025-05-11T01:33:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ENez7](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/enez7/32/10330_2.png) [@ENez7](https://forum.codecrafters.io/u/ENez7)\
**Post date:** [May 11, 2025, 1:33am UTC](https://forum.codecrafters.io/t/jw4-may-be-wrong/10324/1 "2025-05-11T01:33:52Z")

</div>

I’m stuck on Stage #JW4.

I’ve tried to solve this stage, but even though my code outputs the correct answer, tester keeps sending this back “Expected 5 elements in array, got 8 ([“raspberry”, “blueberry”, “banana”, “apple”, “mango”, “pineapple”, “grape”, “orange”])”.

This is the input I am receiving “524544495330303131fa0972656469732d76657205372e322e30fa0a72656469732d62697473c040fe00fb0500000972617370626572727909626c75656265727279000662616e616e61056170706c6500056170706c650972617370626572727900056d616e676f0970696e656170706c6500056772617065066f72616e6765fff35683ce6ed673fa0a”

I double checked with ChatGPT and he is giving me the reason. Can you guys check this? I am not able to move on.

God bless

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 11, 2025, 2:29am UTC](https://forum.codecrafters.io/t/jw4-may-be-wrong/10324/4 "2025-05-11T02:29:12Z")

</div>

Hey @ENez7, the data stored in RDB files are **key-value pairs** , but the output suggests even the values are being interpreted as keys.

Let me know if you’d like help debugging further!

---

<div class="post-metadata">

**Author:** ![ENez7](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/enez7/32/10330_2.png) [@ENez7](https://forum.codecrafters.io/u/ENez7)\
**Post date:** [May 13, 2025, 1:38am UTC](https://forum.codecrafters.io/t/jw4-may-be-wrong/10324/6 "2025-05-13T01:38:11Z")

</div>

Didn’t figure that out. Maybe I should stop coding while being half asleep. Thx. God bless

---

<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:** [May 25, 2025, 7:28am UTC](https://forum.codecrafters.io/t/jw4-may-be-wrong/10324/7 "2025-05-25T07:28:06Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
