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

parse_stream() has no indication of parsing error and instead issues cryptic warning message #12

Open
abuchmueller opened this issue Apr 12, 2021 · 0 comments
Labels
bug Something isn't working enhancement New feature or request minor minor issue / feature

Comments

@abuchmueller
Copy link
Owner

> z <- parse_stream("fromUK.json")
opening fileoldClasskRp.connection input connection.
 Found 2918 records...closing fileoldClasskRp.connection input connection.
 Imported 22015 records. Simplifying...
> z <- jsonlite::stream_in(file("fromUK.json"))
opening fileoldClasskRp.connection input connection.
 Found 2918 records...Error: parse error: premature EOF
                                       {"created_at":"Thu Mar 11 15:20
                     (right here) ------^
closing fileoldClasskRp.connection input connection.

Parsing error at line 2918. However there is no indication of what exactly is happening since parse_stream() only issues a connection warning.

@abuchmueller abuchmueller added the enhancement New feature or request label Apr 12, 2021
@abuchmueller abuchmueller added bug Something isn't working minor minor issue / feature labels Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request minor minor issue / feature
Projects
None yet
Development

No branches or pull requests

1 participant