# String.char error - (Protocol.UndefinedError) protocol String.Chars not implemented

**URL:** <https://forum.elixirforum.com/t/string-char-error-protocol-undefinederror-protocol-string-chars-not-implemented/45167>\
**Category:** Questions\
**Tags:** book-programming-phoenix\
**Created:** [January 11, 2022, 5:52pm UTC](https://forum.elixirforum.com/t/string-char-error-protocol-undefinederror-protocol-string-chars-not-implemented/45167 "2022-01-11T17:52:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![benwilson512](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/benwilson512/32/1457_2.png) [@benwilson512](https://forum.elixirforum.com/u/benwilson512)\
**Post date:** [January 11, 2022, 6:37pm UTC](https://forum.elixirforum.com/t/string-char-error-protocol-undefinederror-protocol-string-chars-not-implemented/45167/5 "2022-01-11T18:37:53Z")

</div>

That is by design, you shouldn’t be trying to print a map. The bug is that somewhere in your code you are trying to treat a map as a map. You have a `parse` function, what do you do with its result, how is it called?

---

_[View the full topic](https://forum.elixirforum.com/t/string-char-error-protocol-undefinederror-protocol-string-chars-not-implemented/45167)._
