FileNotFoundException drops the request
See original GitHub issueAfter performing one of the requests in my app I receive that kind of error which results in failed request:
java.io.FileNotFoundException: /data/user/0/app.name.dev/cache/chucker-21 (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:308)
at java.io.FileOutputStream.<init>(FileOutputStream.java:238)
at okio.Okio__JvmOkioKt.sink(JvmOkio.kt:170)
at okio.Okio.sink(Unknown Source:1)
at okio.Okio__JvmOkioKt.sink$default(JvmOkio.kt:170)
at okio.Okio.sink$default(Unknown Source:1)
at okio.Okio.sink(Unknown Source:3)
at com.chuckerteam.chucker.internal.support.TeeSource.<init>(TeeSource.kt:27)
at com.chuckerteam.chucker.api.ChuckerInterceptor.multiCastResponseBody(ChuckerInterceptor.kt:184)
at com.chuckerteam.chucker.api.ChuckerInterceptor.intercept(ChuckerInterceptor.kt:93)
Repeating the same request doesn’t solve this problem, but performing a different request does.
💣 Steps to reproduce
It happens after giving the control off app to another third-party library. I cannot tell you more concrete info because I really don’t know what happens inside this library. Maybe it clears all caches of app which then results in Chucker error.
🔧 Expected behavior
Anyway it seems that dropping the request with internal error is not the best option. A warning should be enough even though the request wouldn’t be logged.
Tech info - different devices, different OS versions
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
HTTP-request throws an exception FileNotFound
HTTP-request throws an exception FileNotFound ... A request method is POST 100%. I create a new connection so:
Read more >Troubleshoot no data in Application Insights for .NET - Azure
In this article. Some of my telemetry is missing; Request count collected by Application Insights SDK doesn't match the IIS log count for...
Read more >Access Document: files not uploading due to Error 'System.IO ...
The full error is: Server was unable to process request. ---> System.IO.FileNotFoundException: Could not find file '\\CLOUD\aCloudDFileStore\ADM Cloud Document ...
Read more >Failed to Read Files, and "FileNotFoundException" Is ...
In MapReduce tasks, all Map tasks are successfully executed, but Reduce tasks fail. The error message "FileNotFoundException...No lease on.
Read more >Fix list for IBM WebSphere Application Server V8.5
Java client hang when queue manager is quiescing as new connection attempts are made. IT24521, Activation Specifications that consume request messages without ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Guys, I tried 3.3.0-SNAPSHOT version and haven’t received FileNotFoundException again. But now I’m receiving another exception in the same place:
It happens even after removing the application from device and reinstalling a new one.
@CodeBreak524 I invite you to the new issue to provide more info.