# Exception on getting the Feed?

**URL:** https://forum.social.plus/t/exception-on-getting-the-feed/875
**Category:** Flutter
**Created:** [August 10, 2023, 12:19pm UTC](https://forum.social.plus/t/exception-on-getting-the-feed/875 "2023-08-10T12:19:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 10, 2023, 12:19pm UTC](https://forum.social.plus/t/exception-on-getting-the-feed/875/1 "2023-08-10T12:19:03Z")

</div>

Hello  
Following exception  
What is the problem?  
What can I do prevent?  
How can I bypass the exception?

‘package:get\_it/get\_it\_impl.dart’: Failed assertion: line 434 pos 9: ‘instanceFactory.isReady’: You tried to access an instance of DBClient that is not ready yet

#0 \_AssertionError.\_doThrowNew (dart:core-patch/errors\_patch.dart:51:61)  
#1 \_AssertionError.\_throwNew (dart:core-patch/errors\_patch.dart:40:5)  
#2 \_GetItImplementation.get (package:get\_it/get\_it\_impl.dart:434:9)  
#3 \_GetItImplementation.call (package:get\_it/get\_it\_impl.dart:461:12)  
#4 SdkServiceLocator.initServiceLocator. (package:amity\_sdk/src/core/service\_locator/sdk\_service\_locator.dart:78:64)  
#5 \_GetItImplementation.\_register. (package:get\_it/get\_it\_impl.dart:1057:48)  
#6 \_rootRunUnary (dart:async/zone.dart:1407:47)#7 \_CustomZone.runUnary (dart:async/zone.dart:1308:19)

---

<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: [August 10, 2023, 12:26pm UTC](https://forum.social.plus/t/exception-on-getting-the-feed/875/2 "2023-08-10T12:26:30Z")

</div>

Hi, for us to help identify the issue, please help provide more information:

- sdk version
- steps to reproduce/what function was called
- relevant code  
Thank you.

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 10, 2023, 12:50pm UTC](https://forum.social.plus/t/exception-on-getting-the-feed/875/3 "2023-08-10T12:50:36Z")

</div>

Amity version: “0.24.0”  
It’s in my App I don’t know where  
I sent you the stack it suppose to help

---

<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: [August 10, 2023, 12:52pm UTC](https://forum.social.plus/t/exception-on-getting-the-feed/875/4 "2023-08-10T12:52:15Z")

</div>

May I confirm, which feed did you get this exception? community/user/global feed?

---

<div class="post-metadata">

### Author: ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)
#### Post date: [August 10, 2023, 1:13pm UTC](https://forum.social.plus/t/exception-on-getting-the-feed/875/5 "2023-08-10T13:13:05Z")

</div>

At this phase/time I’m using only community

```
  amityPostController = PagingController(
    pageFuture: (token) =>
        AmitySocialClient.newPostRepository()
            .getPosts()
            .targetCommunity(AmityServices.currentCommunityID)
            .feedType(AmityFeedType.PUBLISHED)
            .includeDeleted(false)
            .types(_dataType)
            .tags(_tags)
            .sortBy(_sortOption)
            .onlyParent(true)
            .getPagingData(token: token, limit: GlobalConstant.pageSize),
    pageSize: GlobalConstant.pageSize,
  )
    ..addListener(
          () {
        if (amityPostController.error == null) {
          setState(() {
            amityPosts.clear();
            amityPosts.addAll(amityPostController.loadedItems);
          });
        } else {
          //Error on pagination controller
          setState(() {});
          ErrorDialog.show(context,
              title: 'Error', message: amityPostController.error.toString()+" (3)");
        }
      },
    );

```
