node-csvtojson icon indicating copy to clipboard operation
node-csvtojson copied to clipboard

Argument of type 'string' is not assignable to parameter of type 'Readable' while using csvtojson

Open hengsoheak opened this issue 5 years ago • 4 comments

I am going to create method to read cvs files by url and using csvtojson But when I used request.get I will get Argument of type 'string' is not assignable to parameter of type 'Readable'. I create document but Document but problem still existing here. Onemore thing I could another npm to read files from url but I think, maybe those process exist in csvtojson. so I would use another npm to work with url data or how can i solve this problem

NODE: v8.9.2 npm: 5.5.1

Stackoverflow link

hengsoheak avatar Sep 24 '18 09:09 hengsoheak

Replied on stackoverflow.

~Keyang

Keyang avatar Sep 24 '18 09:09 Keyang

This maybe form data is invalid but I want to read from url not form data { "statusCode": 500, "error": "INTERNAL_SERVER_ERROR", "message": "Uncaught Exception: path must be a string or Buffer" }

hengsoheak avatar Sep 24 '18 10:09 hengsoheak

Hi, do you have updated code where you get this issue?

~Keyang

Keyang avatar Sep 24 '18 14:09 Keyang

I create another issue with Node js request

Nodejs request

hengsoheak avatar Sep 26 '18 08:09 hengsoheak