Could not complete scheduled request to refresh entries. ClientErrorCode: 3 Android Kotlin

后端 未结 1 565
轻奢々
轻奢々 2021-01-02 18:24

Let me get straight to the point here the error in the logcat is:

Could not complete scheduled request to refresh entries. ClientErrorCode: 3
相关标签:
1条回答
  • 2021-01-02 18:58

    So basically I figured it out. This was not the right error from LogCat. There was another set of errors from Logcat many lines above this. The error was the result list was a @Realm object. My recyclerView was asking for a non RealmClass object. So i had to make a similar object except not a RealmClass.

    @RealmClass
    open class ChattRItem: RealmModel {
        @PrimaryKey var itemId: String = ""
        var itemName: String = ""
        var itemCategory: String = ""
        var itemImageFileName: String = ""
        var itemAudioFileName: String = ""
    }
    
    class ChattRBoxItems(val itemId: String, val itemName: String, val itemCategory: String, val itemImageFileName: String, val itemAudioFileName: String)
    

    then I mapped the result into this new class then applied it to my recyclerView.

    0 讨论(0)
提交回复
热议问题