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

Error: Unexpected end of JSON input #1

Open
gordo opened this issue Oct 19, 2016 · 5 comments
Open

Error: Unexpected end of JSON input #1

gordo opened this issue Oct 19, 2016 · 5 comments

Comments

@gordo
Copy link

gordo commented Oct 19, 2016

When uploading the JSON file from a Google Hangouts Takeout archive today, I get the following error, "Unexpected end of JSON input".

@theopolisme
Copy link
Owner

Hm, interesting. How big was the file? Possibly experiencing a memory overflow issue similar to theopolisme/location-history-visualizer#16.

@gordo
Copy link
Author

gordo commented Oct 19, 2016

The JSON file is about 340 MB.

@theopolisme
Copy link
Owner

Yeah, unfortunately it's a known issue that the browser can't load JSON files over 256 MB. I worked on a fix for a desktop version of the Location History Visualizer tool but have yet to port it to web - involves streaming the file for processing rather than loading it all into memory at once.

Open to a pull request, but otherwise might take a while... check out the jsonstream module on npm if you're interested!

@gordo
Copy link
Author

gordo commented Oct 20, 2016

Ah, I see. I might not be the right person for a pull request, but thanks for looking into this! Bummer, but this seems like a neat tool all the same!

@theopolisme
Copy link
Owner

As a temporary workaround you could always truncate the file to less than 256 MB (i.e. just remove some of the older data), then try uploading that. I'll keep you posted on this issue when I do get around to implementing a fix!

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

2 participants