question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileNotFoundException drops the request

See original GitHub issue

After 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
CodeBreak524commented, Aug 11, 2020

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:

 java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively0(Native Method)
        at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:281)
        at java.io.File.createNewFile(File.java:1008)
        at com.chuckerteam.chucker.internal.support.AndroidCacheFileFactory.create(AndroidCacheFileFactory.kt:21)
        at com.chuckerteam.chucker.internal.support.AndroidCacheFileFactory.create(AndroidCacheFileFactory.kt:15)
        at com.chuckerteam.chucker.api.ChuckerInterceptor.multiCastResponseBody(ChuckerInterceptor.kt:184)
        at com.chuckerteam.chucker.api.ChuckerInterceptor.intercept(ChuckerInterceptor.kt:92)

It happens even after removing the application from device and reinstalling a new one.

0reactions
vbuberencommented, Aug 13, 2020

@CodeBreak524 I invite you to the new issue to provide more info.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found