# TypeError: Cannot read properties of undefined (reading 'body')

**URL:** <https://forum.dfinity.org/t/typeerror-cannot-read-properties-of-undefined-reading-body/38535>\
**Category:** Motoko\
**Created:** [December 6, 2024, 6:34pm UTC](https://forum.dfinity.org/t/typeerror-cannot-read-properties-of-undefined-reading-body/38535 "2024-12-06T18:34:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam-thetutor](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/sam-thetutor/32/19114_2.png) [@sam-thetutor](https://forum.dfinity.org/u/sam-thetutor)\
**Post date:** [December 6, 2024, 6:34pm UTC](https://forum.dfinity.org/t/typeerror-cannot-read-properties-of-undefined-reading-body/38535/1 "2024-12-06T18:34:07Z")

</div>

I am facing an issue when I try to call a function from my backend. That. backend function receives icp from one account and transfers it to other another account. Below is the screenshot of the error that I am facing.

 ![Screenshot 2024-12-06 at 21.26.15](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/b/a/ba393ede0947f533b2e635382623f013dc155e1e.png)  
 ![Screenshot 2024-12-06 at 21.26.43](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/a/b/abfa5ef3ed48bc61d6be12d4762ec06df8516296.png)  
 ![Screenshot 2024-12-06 at 21.27.27](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/5/3/53bc7261dd04007902ff239a2c8b18c7fcf3e8d9.png)

The last screenshots show the section of the code that is highlighed to be the source of the issue from my console. second one is the index.ts showing line 44 and the third is the actor.ts showing line 604  
I am suspecting maybe the error is due to the asynchronous nature of the methods inside. Has anyone faced the same issue or knows the exact reason why this is happening?

---

<div class="post-metadata">

**Author:** ![sea-snake](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/sea-snake/32/7243_2.png) [@sea-snake](https://forum.dfinity.org/u/sea-snake)\
**Post date:** [December 6, 2024, 11:55pm UTC](https://forum.dfinity.org/t/typeerror-cannot-read-properties-of-undefined-reading-body/38535/2 "2024-12-06T23:55:27Z")

</div>

Are you using SignerJS or IdentityKit perhaps? This specific error has been resolved in the latest version of either.

---

<div class="post-metadata">

**Author:** ![sam-thetutor](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/sam-thetutor/32/19114_2.png) [@sam-thetutor](https://forum.dfinity.org/u/sam-thetutor)\
**Post date:** [December 7, 2024, 4:16am UTC](https://forum.dfinity.org/t/typeerror-cannot-read-properties-of-undefined-reading-body/38535/3 "2024-12-07T04:16:19Z")

</div>

Yes, I am using IdentityKit to allow users login using NFID.

---

<div class="post-metadata">

**Author:** ![sam-thetutor](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/sam-thetutor/32/19114_2.png) [@sam-thetutor](https://forum.dfinity.org/u/sam-thetutor)\
**Post date:** [December 7, 2024, 4:23am UTC](https://forum.dfinity.org/t/typeerror-cannot-read-properties-of-undefined-reading-body/38535/4 "2024-12-07T04:23:32Z")

</div>

Let me update my IdentityKit version and see if the error goes away, Thank you for the that recommendation.
