# What does error mean with swagger ui

**URL:** <https://community.wowza.com/t/what-does-error-mean-with-swagger-ui/48424>\
**Category:** Wowza Developer Dojo\
**Created:** [March 30, 2017, 11:31pm UTC](https://community.wowza.com/t/what-does-error-mean-with-swagger-ui/48424 "2017-03-30T23:31:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominic\_Chabot](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@Dominic\_Chabot](https://community.wowza.com/u/Dominic_Chabot)\
**Post date:** [March 30, 2017, 11:31pm UTC](https://community.wowza.com/t/what-does-error-mean-with-swagger-ui/48424/1 "2017-03-30T23:31:40Z")

</div>

Hello, I am trying to develop a web app using wowza and the developer license. Right now I am trying to figure out the curl call to add source authentication so that my users would be able to stream. Looking through the rest api I have found the post publishers section, but when I try to test it out I get an error 500.

```auto
<code>"wowzaServer": "4.6.0",
  "success": false,
  "code": "500",
  "message": "The server encountered an unexpected condition which prevented it from fulfilling the request"<br>

```

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [April 1, 2017, 12:36am UTC](https://community.wowza.com/t/what-does-error-mean-with-swagger-ui/48424/2 "2017-04-01T00:36:05Z")

</div>

That looks like an error in the REST API command sent. Please post the exact command you have used in curl.

---

<div class="post-metadata">

**Author:** ![Dominic\_Chabot](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@Dominic\_Chabot](https://community.wowza.com/u/Dominic_Chabot)\
**Post date:** [April 6, 2017, 8:47am UTC](https://community.wowza.com/t/what-does-error-mean-with-swagger-ui/48424/3 "2017-04-06T08:47:57Z")

</div>

I didn’t really make a curl call, I just used the swagger ui and put in the body of that particular post

{  
“password”: “password”,  
“name”: “daniel”,  
“serverName”: “_defaultServer_”  
“description”: “something”,  
“saveFieldList”: [  
“”  
],  
“version”: “4.6.0”  
}

---

<div class="post-metadata">

**Author:** ![Dominic\_Chabot](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@Dominic\_Chabot](https://community.wowza.com/u/Dominic_Chabot)\
**Post date:** [April 6, 2017, 8:53am UTC](https://community.wowza.com/t/what-does-error-mean-with-swagger-ui/48424/4 "2017-04-06T08:53:23Z")

</div>

As it turns out it was just a matter of making sure that if you use the model shema option you then need to make sure you change the parameter content type to application/json.
