I am trying to convert the postman collection to K6 using the utility postman-to-k6. postman-to-k6 works perfectly fine and converts the collection to k6.js script when the collection has simple requests like Get and Post with simple key value pair json body.
But when I want to convert a collection that has file upload using the formdata, the command
postman-to-k6 .\collection.JSON -o K6-script.js
fails. giving me the error
The "path" argument must be of type string. Received an instance of Array
The postman collection is huge with sensitive data and multiple requests in which file upload has been used. It's not possible to share the collection here.(again its my assumption that its failing due to formdata)
Is there any way I can figure out what exactly is causing the problem?
FYI: The collection works perfectly fine in postman too.