#4630·keploy

[bug]: keploy import postman panics on a form-data file field

Author: omlahoreCreated Sep 22, 2026Updated Sep 22, 2026
Labelskeploy

Is there an existing issue for this?

  • I have searched and didn't find similar issue

Current behavior

processFormdataBody does formData["value"].(string) on every form-data entry, but a Postman file field only has src and no value key, so it panics with interface conversion: interface {} is nil, not string. keploy export writes form fields with a values list instead of value, so a test set with form data that goes through export and then import hits the same panic. I found it by calling processFormdataBody from a test, not by running the CLI, but constructRequest calls it for every formdata body, so I think one file field stops the import at that request.

Steps to Replicate

  1. Decode [{"key": "avatar", "type": "file", "src": "/tmp/avatar.png"}] into []map[string]interface{}, the same shape the importer passes along.
  2. Call processFormdataBody with it.
  3. It panics with interface conversion: interface {} is nil, not string. [{"key": "tags", "values": ["x"]}], the shape keploy export writes, does the same.

Operating system

MacOS

Version

main at bd5c8b9

Repository

keploy