Wowza Community

Issue on Create new application from REST API

Hi i am trying to Create new application using rest API, as per documentation :

curl -X POST --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/testlive -d’

{

“restURI”: “http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/testlive”,

“name”: “testlive”,

“appType”: “Live”,

“clientStreamReadAccess”: “*”,

“clientStreamWriteAccess”: “*”,

“description”: “Testing our Rest Service”,

“streamConfig”: {

“restURI”: “http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/testlive/streamconfiguration”,

“streamType”: “live”

}

}’

but here i am getting issue, the error comes ‘(500) Internal Server Error, The server encountered an unexpected condition which prevented it from fulfilling the request’

please let me know what i am doing wrong.

Thanks

Hello Rohit.p

This curl post should work. I’d suspect that you are missing a http user header or otherwise. As requested in your ticket #138425, please supply further configuration and log information (in the ticket) to help us further debug the issue.

Thanks,

Matt