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

**URL:** <https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [June 12, 2018, 10:38am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479 "2018-06-12T10:38:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jho\_Torre](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@Jho\_Torre](https://forum.katalon.com/u/Jho_Torre)\
**Post date:** [June 12, 2018, 10:38am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/1 "2018-06-12T10:38:55Z")

</div>

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.

![](https://s3.amazonaws.com/katalon-forum/editor/hi/gdyxwha1u3ld.png "Image: https://s3.amazonaws.com/katalon-forum/editor/hi/gdyxwha1u3ld.png")

![](https://s3.amazonaws.com/katalon-forum/editor/u1/8var9gfivxpi.png "Image: https://s3.amazonaws.com/katalon-forum/editor/u1/8var9gfivxpi.png")

![](https://s3.amazonaws.com/katalon-forum/editor/91/9djn4726if7b.png "Image: https://s3.amazonaws.com/katalon-forum/editor/91/9djn4726if7b.png")

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:

```auto
{
  "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](https://s3.amazonaws.com/katalon-forum/editor/hi/gdyxwha1u3ld.png)

[body.PNG](https://s3.amazonaws.com/katalon-forum/editor/u1/8var9gfivxpi.png)

[header.PNG](https://s3.amazonaws.com/katalon-forum/editor/91/9djn4726if7b.png)

---

<div class="post-metadata">

**Author:** ![Jho\_Torre](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@Jho\_Torre](https://forum.katalon.com/u/Jho_Torre)\
**Post date:** [June 13, 2018, 8:03am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/2 "2018-06-13T08:03:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Trong\_Bui](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/trong_bui/32/374_2.png) [@Trong\_Bui](https://forum.katalon.com/u/Trong_Bui)\
**Post date:** [June 18, 2018, 2:11am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/3 "2018-06-18T02:11:37Z")

</div>

Do you have the test url that I could try?

---

<div class="post-metadata">

**Author:** ![Jho\_Torre](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@Jho\_Torre](https://forum.katalon.com/u/Jho_Torre)\
**Post date:** [June 18, 2018, 4:54am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/4 "2018-06-18T04:54:34Z")

</div>

> 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:

```auto
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:

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

```

Looking forward for your quick response.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Trong\_Bui](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/trong_bui/32/374_2.png) [@Trong\_Bui](https://forum.katalon.com/u/Trong_Bui)\
**Post date:** [June 20, 2018, 2:28am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/5 "2018-06-20T02:28:31Z")

</div>

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

![](https://s3.amazonaws.com/katalon-forum/editor/r4/7xiukv192wgj.png "Image: https://s3.amazonaws.com/katalon-forum/editor/r4/7xiukv192wgj.png")

[Screen Shot 2018-06-20 at 09.26.55.png](https://s3.amazonaws.com/katalon-forum/editor/r4/7xiukv192wgj.png)

---

<div class="post-metadata">

**Author:** ![rajani.gangadhara](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@rajani.gangadhara](https://forum.katalon.com/u/rajani.gangadhara)\
**Post date:** [August 8, 2019, 1:16am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/6 "2019-08-08T01:16:46Z")

</div>

Hello Trong,

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

---

<div class="post-metadata">

**Author:** ![18344264447](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@18344264447](https://forum.katalon.com/u/18344264447)\
**Post date:** [April 4, 2020, 6:40am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/7 "2020-04-04T06:40:02Z")

</div>

Hello Trong,

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

---

<div class="post-metadata">

**Author:** ![AndyCapp](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andycapp/32/15712_2.png) [@AndyCapp](https://forum.katalon.com/u/AndyCapp)\
**Post date:** [February 2, 2021, 5:03pm UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/8 "2021-02-02T17:03:05Z")

</div>

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

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

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/2/4/24b83f3557b5c8eb5f571fe54d47d47792fcb131.png)

2)My object API in katalon

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/f/eff0903242ba5caccd12856ea24737fcee4c6ff4.png)

Best regards  
AndyCapp

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:31am UTC](https://forum.katalon.com/t/katalon-studio-seems-not-using-my-form-data-in-web-api-testing/11479/9 "2022-08-08T07:31:41Z")

</div>

Archived on August 8, 2022, 7:31am UTC


