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.

Regression in CSV parsing because of csv-parse upgrade.

See original GitHub issue

A new version of csv-parse, i.e. 4.3.0 was released on Dec 31, 2018. This version has some validation refinements including one for the from_line option. artillery passes the from_line option as either 1 or 0 depending on whether headers should be skipped or not. This should be changed to use 2 or 1 instead.

Affected line in artillery/lib/commands/run.js:

from_line: typeof payloadSpec.skipHeader === true ? 1 : 0,

This should be changed to:

from_line: typeof payloadSpec.skipHeader === true ? 2 : 1,

Alternatively, package.json should be changed to use

"csv-parse": "4.2.0",

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
rajeshjacommented, Jan 7, 2019

Thanks. When can I expect the latest code on npmjs.com?

2reactions
rajeshjacommented, Jan 4, 2019

Can someone please look at my pull request for this? All artillery scripts using CSV files are broken with the latest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

encoding issue with CSV.parse - ruby on rails - Stack Overflow
My goal is to upload a file containing rows of firstname and lastname, parse it and create Person model in db for each...
Read more >
csv-parse - npm
The csv-parse package is a parser converting CSV text input into arrays or objects. It is part of the CSV project. It implements...
Read more >
Parsing Comma Separated Value (CSV) Files using Univocity
In this recipe, we will see how we can parse CSV files and handle data points retrieved from them. Getting ready. In order...
Read more >
Implement the CSV parser UI [#2669974] | Drupal.org
Contains parser configuration form displayed on the feed form. feeds/src/Component/CsvParser.php. Loops through the CSV data and parses it. The ...
Read more >
Data driven testing using csv in Protractor
Hi i found another csv module : csv-parse ... 'function'){ sleep(1) } for(let a of testdata){ it('test {Regression} {Sanity} {Sanity}', ...
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