question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't crash when passed a binary file

See original GitHub issue

Now it crashes all nodejs app:

node_modules/ya-csv/lib/ya-csv.js:131
 throw new Error("separator expected after a closin
Error: separator expected after a closing quote; found 

It should handle the error gracefully.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kolescommented, Nov 16, 2016

This has been fixed a long time ago. Ya-csv emits an ‘error’ event in the case of an error. Sorry for not closing the ticket formally. Error handling has been added to the examples in the README file.

0reactions
uncedriccommented, Nov 28, 2014

Same here, any idea how to handle this ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

C++ Program crashes when reading binary data from file of X ...
This local variable: ResData tmp;. contains unsigned char *data;. Given that none of the code actually assigns anything to data , it will...
Read more >
Cancel reading binary files to prevent reading all data #132771
Issue Type: Performance Issue. When I use remote ssh to control the server, drag a binary file from the local to the server....
Read more >
Binary Files in C++
In C++, no file operations cause the program to stop. If an error occurs and you do not check it, then your program...
Read more >
Enabling binary support using the API Gateway console
The section explains how to enable binary support using the API Gateway console. As an example, we use an API that is integrated...
Read more >
What is a binary file and how does it work? - TechTarget
Binary files are commonly used when building applications and other types of software. However, developers do not work directly with the binary files....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found