简体   繁体   中英

Unable to upload multipart file in karate, Required request part '' not present

ActualAPIRequest OutputFromKarate

Trying to upload a json file for an api using karate. Since api takes multipart input i am passing multipart configurations in karate. But Required request part 'inputData' not present error is coming. Is there any solution for this please? I have attached actual input and result from karate screenshot for reference

Just make sure that the data type of inputData and maybe swaggerFile is JSON. Looks like you are sending a string.

Please refer to this section of the doc: https://github.com/intuit/karate#type-conversion

If the server does not like the charset being sent for each multipart, try * configure charset = null

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM