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

com.filepicker.FilePickerModule.getPath FilePickerModule.java, line 223 java.lang.NumberFormatException: For input string: "msf:124969" #47

Open
carlmagumpara opened this issue May 8, 2020 · 12 comments

Comments

@carlmagumpara
Copy link

No description provided.

@omarinho
Copy link

I am gettting this error when the filename is long. For example national-cancer-institute-dMZC6hdobnk-unsplash.jpg but if I change the name to img1.jpg, then it is not happening.

@farshed
Copy link

farshed commented Jul 7, 2020

Getting the same error on all files. File name length doesn't matter.

@carlmagumpara
Copy link
Author

any updates

@DnEgorWeb
Copy link

DnEgorWeb commented Sep 11, 2020

Will it ever be fixed? The only files that work for me are pdf files. Images, videos, all fail with java.lang.NumberFormatException: For input string: "msf:X"

@official-bharat
Copy link

Hi,is there anyone know how to fix this java.lang.NumberFormatException: For input string: "msf:X" issue.

@devarora07
Copy link

Hey, I am stuck at this issue, can anyone help, getting error {"error": "java.lang.NumberFormatException: For input string: "msf:6655""}

@dominguezcm
Copy link

dominguezcm commented Jan 5, 2021

The problem is on choose a file from "Recent Files".
Check replace this on FilePickerModule.java

final Uri contentUri = ContentUris.withAppendedId( Uri.parse(prefix + "downloads/public_downloads"), Long.valueOf(id));

for this

final Uri contentUri = ContentUris.withAppendedId( Uri.parse(prefix + "downloads/public_downloads"), Long.valueOf(split[1]));

@bodaghialib4
Copy link

The problem is on choose a file from "Recent Files".
Check replace this on FilePickerModule.java

final Uri contentUri = ContentUris.withAppendedId( Uri.parse(prefix + "downloads/public_downloads"), Long.valueOf(id));

for this

final Uri contentUri = ContentUris.withAppendedId( Uri.parse(prefix + "downloads/public_downloads"), Long.valueOf(split[1]));

thanks @dominguezcm
I have the same error and this fixed the error.
but have I change the library code manually after each yarn? or there is some other solution?

@luisfuertes
Copy link
Owner

luisfuertes commented Aug 16, 2021

You can use patch-package.

This week i will try to upload this fix on new version. (PRs are welcome)

@sasilta
Copy link

sasilta commented Sep 14, 2021

After updating to latest version of 0.0.21, the issues with " java.lang.NumberFormatException:...." is fixed but it seems to throw new error for images and pdf files which were working before

{"error": "java.lang.ArrayIndexOutOfBoundsException: length=1; index=1"}

@ZComwiz
Copy link

ZComwiz commented Dec 5, 2021

@sasilta did you find a solution to it?

@sasilta
Copy link

sasilta commented Mar 7, 2022

@ZComwiz not yet.

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