Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qite-poper opened this issue Sep 8, 2022 · 5 comments
Open
Assignees
Labels
bug Something isn't working Investigate Needs more investigation, before next steps can be defined.

Comments

@qite-poper
Copy link

qite-poper commented Sep 8, 2022

{
									"name": "xxx",
									"request": {
										"method": "POST",
										"header": [],
										"body": {
											"mode": "formdata",
											"formdata": [
												{
													"key": "file",
													"description": "required",
													"type": "file",
													"src": []
												}
											]
										},
										"url": {
											"raw": "xxx",
											"host": [
												"xxx"
											],
											"path": [
												"xxx"
											]
										}
									},
									"response": []
								}

The default value is of src is []. If I replace it with a string, then the postman-to-k6 will work fine.

@thim81
Copy link
Collaborator

thim81 commented Sep 13, 2022

Linked to #28

@thim81
Copy link
Collaborator

thim81 commented Sep 13, 2022

Correct, currently the postman-to-k6 library is not fully capable of handling "files".
I still have to investigate if this is a bug or feature.

@qite-poper
Copy link
Author

I think it is a bug of Postman.

@thim81
Copy link
Collaborator

thim81 commented Jan 14, 2023

hi @qite-poper

We just released v.18.7 of postman-to-k6, which introduces the support for file uploads.
The conversion from Postman uploads can take various shapes, so I tried to bring support for the binary upload.

If the issue is resolved, feel free to close this item.
Let me know if you have other use cases or run into other issues.

@bugaeva98
Copy link

bugaeva98 commented Dec 4, 2023

Hi @thim81
I have the same problem with my collection

For_k6.postman_collection.json

@thim81 thim81 added bug Something isn't working Investigate Needs more investigation, before next steps can be defined. labels Jul 31, 2024
@thim81 thim81 self-assigned this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Investigate Needs more investigation, before next steps can be defined.
Projects
None yet
Development

No branches or pull requests

3 participants