Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Type error when passing command line options #71

Closed
ronfeldman opened this issue Oct 27, 2020 · 2 comments
Closed

Type error when passing command line options #71

ronfeldman opened this issue Oct 27, 2020 · 2 comments

Comments

@ronfeldman
Copy link

ronfeldman commented Oct 27, 2020

The problem

When an option is "blank" in Postman, it is exported in this format:

"src": [],

When postman-to-k6 encounters this value, it gives the following error on the command line:

The "path" argument must be of type string. Received type object

Workaround

Editing the exported collection, changing the [] to "", before converting it works around the problem.

Sample Data

This causes the error

"key": "sampleFile2", "type": "file", "src": [], "disabled": true },

This works around the error

{ "key": "sampleFile2", "type": "file", "src": "", "disabled": true },

@simskij
Copy link
Contributor

simskij commented Nov 20, 2020

Well spotted! It should likely check for empty arrays, and in that case, just skip them as well.
Thanks for bringing this to my attention!

@simskij simskij self-assigned this Nov 20, 2020
@simskij simskij removed their assignment Nov 12, 2021
@ppcano
Copy link
Collaborator

ppcano commented Nov 22, 2021

Apologies for the inactivity on this project.

Due to the inability to properly support this project, the k6 team has decided not to continue its development. The primary reason is that k6 scope has grown significantly with the launch of k6 extensions. The team is prioritizing extending k6 capabilities over the converters.

We suggest you post your issue at api-deck/postman-to-k6. The project is active and maintained on this fork.

@ppcano ppcano closed this as completed Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants