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

Fix for -- SyntaxError: Unexpected end of input #5

Open
payousefi opened this issue Dec 6, 2016 · 1 comment
Open

Fix for -- SyntaxError: Unexpected end of input #5

payousefi opened this issue Dec 6, 2016 · 1 comment

Comments

@payousefi
Copy link
Contributor

Hi -- not sure if this is still being managed, but I ran into this error and have a fix for it that might help others.

I was running a couple different R scripts that took a little longer to complete. I would receive an Unexpected end of input error, and the log of the actual data was a .

I concluded I was receiving the 'unexpected end of input' error because JSON.parse couldn't parse the string buffer being passed in from the data received from R via Node's child_process.spawn -- so I attempted concatenating the chunks of the data and then running the callback on close instead, and that fixed my issue!

It's possible I was receiving this error for another reason (and if anyone has other ideas, that would be useful), but I'll make a pull request referencing this issue in case it's something you think would be required for others.

@ss50
Copy link

ss50 commented Aug 22, 2017

I'm also experiencing the same issue - have you gotten your pull request reviewed??

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