# Getting a couldn't open file Toast error when I click on a video

**URL:** <https://community.sendbird.com/t/getting-a-couldnt-open-file-toast-error-when-i-click-on-a-video/6461>\
**Category:** Android\
**Created:** [January 31, 2023, 4:05pm UTC](https://community.sendbird.com/t/getting-a-couldnt-open-file-toast-error-when-i-click-on-a-video/6461 "2023-01-31T16:05:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agustin\_Larghi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/agustin_larghi/32/3512_2.png) [@Agustin\_Larghi](https://community.sendbird.com/u/Agustin_Larghi)\
**Post date:** [January 31, 2023, 4:05pm UTC](https://community.sendbird.com/t/getting-a-couldnt-open-file-toast-error-when-i-click-on-a-video/6461/1 "2023-01-31T16:05:22Z")

</div>

**[Problem/Question]**

When I upload a video through the chat, if I try to re open that video later on, I get a “Couldn’t open file” error 👇

 ![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/a/aa63d01998c27f302d94b7aefa093373fa061073.jpeg)

* * *

// What version of the SDK are you using?  
implementation ‘com.sendbird.sdk:uikit:3.3.0’

**[Reproduction Steps]**

- Open a chat
- Submit a video
- Try to open the video

**[Frequency]**

All the time.

**[Current impact]**

Cannot submit videos.

This is the stack trace I get from logcat 👇

```auto
2023-01-31 13:01:06.715 26411-26411 SBUIKIT com.x.android.dev E [13:01:06.714 BaseMessageListFragment$3:onResultForUiThread():476] SendbirdException{code=800220, message=Failed to find configured root that contains /data/data/com.sandboxx.android.dev/cache/image_manager_disk_cache/43037a31ebcb0528aace2e39571bc4b3e6585a24b16215f5513e8ee970bd7ff2.0}
                                                                                                    	at com.sendbird.uikit.internal.tasks.JobResultTask$task$1.call(JobResultTask.kt:21)
                                                                                                    	at com.sendbird.uikit.internal.tasks.JobTask._get_callable_$lambda-0(JobTask.kt:13)
                                                                                                    	at com.sendbird.uikit.internal.tasks.JobTask.$r8$lambda$Gzfnd3hhnl88z_4fQNwLm5UXgUw(Unknown Source:0)
                                                                                                    	at com.sendbird.uikit.internal.tasks.JobTask$$ExternalSyntheticLambda0.call(Unknown Source:2)
                                                                                                    	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
                                                                                                    	at java.lang.Thread.run(Thread.java:1012)
2023-01-31 13:01:06.724 26411-26411 Toast com.x.android.dev E setGravity() shouldn't be called on text toasts, the values won't be used

```

---

<div class="post-metadata">

**Author:** ![Agustin\_Larghi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/agustin_larghi/32/3512_2.png) [@Agustin\_Larghi](https://community.sendbird.com/u/Agustin_Larghi)\
**Post date:** [January 31, 2023, 4:34pm UTC](https://community.sendbird.com/t/getting-a-couldnt-open-file-toast-error-when-i-click-on-a-video/6461/2 "2023-01-31T16:34:54Z")

</div>

Sorry, this has been fix. It was an issue with the FileProvider. Thanks!

---

<div class="post-metadata">

**Author:** ![Kartik\_Joshi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/kartik_joshi/32/4015_2.png) [@Kartik\_Joshi](https://community.sendbird.com/u/Kartik_Joshi)\
**Post date:** [May 15, 2023, 8:40am UTC](https://community.sendbird.com/t/getting-a-couldnt-open-file-toast-error-when-i-click-on-a-video/6461/3 "2023-05-15T08:40:08Z")

</div>

Hi @Agustin_Larghi,

Can you please mention the solution you have applied to resolve this issue I have applied the same FileProvider solution but have had no success in the outcome.
