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

[import] Fix JSON parse errors not being emitted #703

Merged
merged 1 commit into from Mar 27, 2018

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Mar 26, 2018

Because of the new "peek at the stream to see if it's an ndjson or a tarball" behavior, JSON parse errors were not being surfaced. With this PR we apply a separate error handler on the ndjson stream and reject if encountering any errors. Because the concatenation stream finishes prior to the pipeline callback, I had to slightly change the flow to assign the gathered JSON-documents to a variable and resolving only on pipeline completion.

@rexxars rexxars requested a review from bjoerge March 26, 2018 12:31
@rexxars rexxars merged commit 7b7efe2 into next Mar 27, 2018
@rexxars rexxars deleted the import-emit-json-errors branch March 27, 2018 21:50
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

Successfully merging this pull request may close these issues.

None yet

1 participant