Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown during queue deserialization: open failed: ENOENT (No such file or directory) #24

Open
WKozakDisney opened this issue Nov 13, 2020 · 0 comments

Comments

@WKozakDisney
Copy link

Hello,
I noticed in my Logs that every time when we create new instance of ParselyTracker then this error is being thrown:

ParselyTracker: Exception thrown during queue deserialization: open failed: ENOENT (No such file or directory)

It is cased because by getStoredQueue and line :
FileInputStream fis = this.context.getApplicationContext().openFileInput( this.storageKey);

You try to open file which doesn't exist and is created later on. It might be fixed pretty easy by adding small check before

File storageFile = new File(Environment.getExternalStorageDirectory() + this.storageKey);  
if(!storageFile.exists()) {
   storageFile.mkdir();
}

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant