Results 1 to 2 of 2

Thread: Issue on Create new application from REST API

  1. #1
    Join Date
    Aug 2015
    Posts
    4

    Default 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/_de...tions/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

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    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

Similar Threads

  1. API rest start/stop/restart application live tream
    By jormarcha in forum Wowza Streaming Engine REST API
    Replies: 1
    Last Post: 03-13-2015, 01:20 PM
  2. Add application using the REST API
    By szidonia in forum General Forum
    Replies: 1
    Last Post: 02-23-2015, 09:31 AM
  3. Create Application through server side API
    By abhilashk_cse in forum Wowza Streaming Server Java API
    Replies: 12
    Last Post: 04-22-2014, 05:14 AM
  4. REST API for interrogating settings like transcoder formats/endpoints
    By piers7 in forum Server Administration Discussion
    Replies: 2
    Last Post: 08-16-2012, 06:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •