Attachments not loading
Closed this issue · 0 comments
Why does the attachments won't load and there is infite loading icon. @adityadroid
and the errors:
``I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.VIDEO }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 2
I/flutter ( 6782): Received InitialAttachmentsState
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 2 order by -timeStamp) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.VIDEO }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 2
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 2 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.IMAGE }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 1
I/flutter ( 6782): Received InitialAttachmentsState
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 1 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.IMAGE }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 1
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 1 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.VIDEO }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 2
I/flutter ( 6782): Received InitialAttachmentsState
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 2 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.VIDEO }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 2
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 2 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.IMAGE }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 1
I/flutter ( 6782): Received InitialAttachmentsState
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 1 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.IMAGE }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 1
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 1 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): FetchChatListEvent
I/flutter ( 6782): ReceivedChatsEvent
I/flutter ( 6782): ChatList [{ username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}]
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): Received InitialAttachmentsState
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.IMAGE }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 1
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 1 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): FetchChatListEvent
I/flutter ( 6782): ReceivedChatsEvent
I/flutter ( 6782): ChatList [{ username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}]
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.VIDEO }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 2
I/flutter ( 6782): Received InitialAttachmentsState
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 2 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.VIDEO }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 2
I/flutter ( 6782): Received InitialAttachmentsState in ui
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 2 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.ANY }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 3
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 3 order by -timeStamp) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.ANY }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 3
I/flutter ( 6782): Received InitialAttachmentsState
I/flutter ( 6782): Received InitialAttachmentsState
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 3 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.IMAGE }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 1
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 1 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.IMAGE }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 1
I/flutter ( 6782): Received InitialAttachmentsState
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 1 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): FetchChatListEvent
I/flutter ( 6782): ReceivedChatsEvent
I/flutter ( 6782): ChatList [{ username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}]
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): Received InitialAttachmentsState
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.VIDEO }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 2
W/Firestore( 6782): (19.0.0) [Firestore]: Listen for Query(chats/JrSA0KXWo9xg85WY3tkU/messages where type == 2 order by -timeStamp, -name) failed: Status{code=FAILED_PRECONDITION, description=The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/wechat-e63c1/firestore/indexes?create_composite=Ck1wcm9qZWN0cy93ZWNoYXQtZTYzYzEvZGF0YWJhc2VzLyhkZWZhdWx0KS9jb2xsZWN0aW9uR3JvdXBzL21lc3NhZ2VzL2luZGV4ZXMvXxABGggKBHR5cGUQARoNCgl0aW1lU3RhbXAQAhoMCghfX25hbWVfXxAC, cause=null}
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): FetchChatListEvent
I/flutter ( 6782): ReceivedChatsEvent
I/flutter ( 6782): ChatList [{ username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}]
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): FetchChatListEvent
I/flutter ( 6782): ReceivedChatsEvent
I/flutter ( 6782): ChatList [{ username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}]
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
W/.example.wecha( 6782): Accessing hidden method Ldalvik/system/CloseGuard;->close()V (light greylist, linking)
logs:
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): FetchChatListEvent
I/flutter ( 6782): ReceivedChatsEvent
I/flutter ( 6782): ChatList [{ username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}]
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): Received InitialAttachmentsState
I/flutter ( 6782): FetchAttachmentsEvent { chatId : JrSA0KXWo9xg85WY3tkU fileType : FileType.IMAGE }
I/flutter ( 6782): for chat id JrSA0KXWo9xg85WY3tkU 1
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState
I/flutter ( 6782): FetchChatListEvent
I/flutter ( 6782): ReceivedChatsEvent
I/flutter ( 6782): ChatList [{ username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}]
I/flutter ( 6782): build of { username= luizella, chatId = JrSA0KXWo9xg85WY3tkU}
I/flutter ( 6782): chatlist
I/flutter ( 6782): FetchedChatListState