-
Notifications
You must be signed in to change notification settings - Fork 24
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: Encoding not being detected #13
Comments
For me this issue occurs after upgrading to Node.js 8. Both the fix here and in #14 appear to fix it. |
orangejulius
added a commit
to pelias/whosonfirst
that referenced
this issue
Oct 30, 2017
As of Node.js 8, the default encoding value used by the (very old) csv-stream module is not accepted. As mentioned in lbdremy/node-csv-stream#13, explicitly setting the encoding is enough to work around the issue.
orangejulius
added a commit
to pelias/whosonfirst
that referenced
this issue
Oct 30, 2017
As of Node.js 8, the default encoding value used by the (very old) csv-stream module is not accepted. As mentioned in lbdremy/node-csv-stream#13, explicitly setting the encoding to undefined is enough to work around the issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using
csv-stream
with express to parse a request stream (file).This is the code I'm using:
When I run this, I get this error:
I can fix this by adding the following to my code:
But this is an ugly hack that I want to avoid at all cost.
Is there any way to fix this from my side? Am I missing something? Or should
csv-stream
set a value forthis._encoding
coming fromoptions
or something similar?The text was updated successfully, but these errors were encountered: