Katalon Studio seems not using my form data in web API testing

Hi,

I have this issue with api testing that seems weird. I have a web api that will receive image files and texts, please see below.

Basically, it will upload the image files and save texts in the database.
Now, when I Test Request this using Katalon Studio it will always return this error message:

{
  "message":"The given data was invalid.",
  "errors":{
    "assets":[
      "The assets field is required."],
    "text":[
      "The text field is required."]
  }
}

But in other REST client it works just fine.

Also, when I changed the “assets” & “text” to not of an array type, it still returns the same error in Katalon Studio but with other REST client tool, it returns the right message like “Expecting array for assets field”, etc. That is why I concluded that maybe the form data were not used.

Is there something that I missed with this like some sort of configuration in Katalon? I am actually new to Katalon Studio so really need your help resolving this issue.

Thank you very much.

Regards.

apiurl.PNG

body.PNG

header.PNG

Any ideas with this, Katalon Support? I badly needed to fix this issue.

Do you have the test url that I could try?

Trong Bui said:

Do you have the test url that I could try?

Hi Trong,

Thanks for the reply.

Please use this test url and data:

http://aaa.staging.sprasia.jp/movies?api_token=W8SK5VpcQRvk4CG4evhespKOxyHQQlvI1U8ZSIuMAxink435TOSXY9nxNncCform-data:assets[] : file array (image type)text[] : text arraytemplate : number (use 1 as value)header:Accept = application/json

This is the expected response format:

{
    "data": {
        "id": 0,
        "hd_url": "",
        "sd_url": "",
        "status": "",
        "created_at": ""
    }
}

Looking forward for your quick response.

Thank you very much.

I have tried the test and get the error at the server. I will try it another time.

Screen Shot 2018-06-20 at 09.26.55.png

Hello Trong,

Do we have an answer for above?
As I am also facing same Issue

Hello Trong,

Do we have an answer for above?
As I am also facing same Issue

Hey guys, keep calm and carry on!! @Trong_Bui is not a magical fairy!!!

I try to ask with more details:
1)my swagger:

2)My object API in katalon

Best regards
AndyCapp