# Block result was adapted via implicit conversion (method apply) taking a by-name parameter

**URL:** <https://softwaremill.community/t/block-result-was-adapted-via-implicit-conversion-method-apply-taking-a-by-name-parameter/224>\
**Category:** tapir\
**Created:** [June 7, 2023, 11:01am UTC](https://softwaremill.community/t/block-result-was-adapted-via-implicit-conversion-method-apply-taking-a-by-name-parameter/224 "2023-06-07T11:01:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreuse](https://dub1.discourse-cdn.com/flex005/user_avatar/softwaremill.community/dreuse/32/151_2.png) [@dreuse](https://softwaremill.community/u/dreuse)\
**Post date:** [June 7, 2023, 11:01am UTC](https://softwaremill.community/t/block-result-was-adapted-via-implicit-conversion-method-apply-taking-a-by-name-parameter/224/1 "2023-06-07T11:01:29Z")

</div>

Hi,

I’m trying to run the [books example](https://github.com/softwaremill/tapir/blob/master/examples/src/main/scala/sttp/tapir/examples/BooksExample.scala) using tapir 1.1.2 and Scala 2.13.8, and I’m getting the following error during compilation:  
`Block result was adapted via implicit conversion (method apply) taking a by-name parameter` on every line that has `jsonBody[Book]`.

Does anyone know how to fix this?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![adamw](https://dub1.discourse-cdn.com/flex005/user_avatar/softwaremill.community/adamw/32/28_2.png) [@adamw](https://softwaremill.community/u/adamw)\
**Post date:** [June 7, 2023, 7:34pm UTC](https://softwaremill.community/t/block-result-was-adapted-via-implicit-conversion-method-apply-taking-a-by-name-parameter/224/2 "2023-06-07T19:34:00Z")

</div>

Do you try to run the example verbatim, as it appears in the repository? Do you have the necessary dependencies in your project? Finally, can you try using latest tapir version?
