# Error when running PostRespository.getPostByIds()

**URL:** <https://forum.social.plus/t/error-when-running-postrespository-getpostbyids/939>\
**Category:** TS SDK\
**Created:** [September 28, 2023, 10:17am UTC](https://forum.social.plus/t/error-when-running-postrespository-getpostbyids/939 "2023-09-28T10:17:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![awareai-dev](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@awareai-dev](https://forum.social.plus/u/awareai-dev)\
**Post date:** [September 28, 2023, 10:17am UTC](https://forum.social.plus/t/error-when-running-postrespository-getpostbyids/939/1 "2023-09-28T10:17:59Z")

</div>

I get the following error in Typescript when I try to run PostRespository.getPostByIds():  
[ReferenceError: Property ‘error’ doesn’t exist]

I’m running the latest version of the Typescript package (6.9.0)

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [September 28, 2023, 11:52am UTC](https://forum.social.plus/t/error-when-running-postrespository-getpostbyids/939/2 "2023-09-28T11:52:40Z")

</div>

Hello, could you please provide the relevant code?

---

<div class="post-metadata">

**Author:** ![awareai-dev](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@awareai-dev](https://forum.social.plus/u/awareai-dev)\
**Post date:** [September 28, 2023, 1:37pm UTC](https://forum.social.plus/t/error-when-running-postrespository-getpostbyids/939/3 "2023-09-28T13:37:03Z")

</div>

Ah, I understand the issue, this is related to another post about an issue dealing with content search. For some reason, some of the post ids I’ve gotten returned when testing with content search don’t exist. So when I include the invalid ids in the array that I pass to getPostByIds it returns the error I included.
