Stream file is not created in content folder.

Hi team,

I am using Wowza rest API to create stream file using c#

RestClient. I am receiving the created response as success but the stream file is not getting generated and I am receiving following error in the logs file.

"

  • WARN server comment 2019-05-14 17:10:24 1860994054 127.0.0.1 - 1174689953 0 353904.905 - - - - - - - - REST API: StreamFileAppConfig.getXMLFilename() not all variables are defined. ‘{streamfileName}.stream’
    WARN server comment 2019-05-14 17:10:24 1860994054 127.0.0.1 - 1174689953 0 353904.911 - - - - - - - - REST API: StreamFileAppConfig.getXMLFilename() not all variables are defined. ‘{streamfileName}.stream’
    WARN server comment 2019-05-14 17:10:24 1860994054 127.0.0.1 - 1174689953 0 353904.911 - - - - - - - - Problem loading extra options from file: null: java.lang.NullPointerException|at java.io.File.(File.java:277)|at com.wowza.wms.rest.vhosts.streamfiles.StreamFileConfig.loadExtraOptions(Unknown Source)|at com.wowza.wms.rest.vhosts.applications.streamfiles.StreamFileAppConfig.loadExtraOptions(Unknown Source)|at com.wowza.wms.rest.vhosts.streamfiles.StreamFileConfig.saveObjectToFile(Unknown Source)|at com.wowza.wms.rest.ConfigBase.saveObject(Unknown Source)|
    WARN server comment 2019-05-14 17:10:24 1860994054 127.0.0.1 - 1174689953 0 353904.914 - - - - - - - - Problem saving to file: null: java.lang.NullPointerException|at java.io.File.(File.java:277)|at com.wowza.wms.rest.vhosts.streamfiles.StreamFileConfig.saveObjectToFile(Unknown Source)|at com.wowza.wms.rest.ConfigBase.saveObject(Unknown Source)|at com.wowza.wms.rest.ConfigBase.saveNewObject(Unknown Source)|at com.wowza.wms.rest.ConfigBase.post(Unknown Source)|

  • I am making request like below request.AddHeader(“Content-type”, “application/json; charset=utf-8”);
    request.AddHeader(“Accept”, “application/json; charset=utf-8”);
    request.Credentials = new NetworkCredential(“admin”, “admin”);

    StreamRequest createStreamRequest = new StreamRequest
    {
    Name = streamName,
    ServerName = “defaultServer”,
    Uri = "rtsp://10.29.8.61/axis-media/media.amp"
    };

    request.AddJsonBody(createStreamRequest);

Hi @Ashu kumar, can you submit a support ticket and the engineers will walk you through this. They need to view all the logs and files however to do this. Thank you.

https://www.wowza.com/support/open-ticket