# Can't start the stream from GoCoder after calling the update Application API

**URL:** https://community.wowza.com/t/cant-start-the-stream-from-gocoder-after-calling-the-update-application-api/48853
**Category:** Wowza Developer Dojo
**Created:** [May 26, 2017, 2:46pm UTC](https://community.wowza.com/t/cant-start-the-stream-from-gocoder-after-calling-the-update-application-api/48853 "2017-05-26T14:46:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Paris\_Yates](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Paris\_Yates](https://community.wowza.com/u/Paris_Yates)
#### Post date: [May 26, 2017, 2:46pm UTC](https://community.wowza.com/t/cant-start-the-stream-from-gocoder-after-calling-the-update-application-api/48853/1 "2017-05-26T14:46:40Z")

</div>

I was trying to automate the live Streaming using Wowza Streaming Engine. For that, I installed the streaming engine in my AWS EC2 instance then I tried the following REST API for the create Application and I connected from the Wowza GoCoder using mobile.

When I do that I can’t the receive the distributed stream in JW player due to CORS error.  
So I called a REST API to update the cors. But after that my wowza Gocoder couldn’t connect the application.

Let me know what I missed on my API calls.

Please find the create API  
URL : [http://52.37.27.133:8087/v2/servers/](http://52.37.27.133:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/may26-6  
Method : POST

Body :

```auto
{
   "restURI": "http://52.37.27.133:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/may26-6",
   "name": "may26-6",
   "appType": "Live",
   "clientStreamReadAccess": "*",
   "clientStreamWriteAccess": "*",
   "description": "A basic live application",
   "streamConfig": {
    	"restURI": "http://52.37.27.133:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/may26-6/streamconfiguration",
    	"streamType": "live-record-lowlatency",
    	"storageDirExists": "false",
    	"createStorageDir": "true",
    	"storageDir": "/usr/local/WowzaStreamingEngine/content/may26-6"
   }
}
<br>

```

Update API  
URL :[http://52.37.27.133:8087/v2/servers/](http://52.37.27.133:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/may26-6/adv  
Method : PUT  
Body :

```auto
{
"restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/may23-1/adv",
"version": "1430682096001",
"advancedSettings": [
{
"enabled": true,
"canRemove": true,
"name": "CORSHeadersEnableMain",
"value": "true",
"defaultValue": true,
"type": "Boolean",
"sectionName": "Application",
"section": "/Root/Application/HTTPStreamer",
"documented": true
},
{
"enabled": true,
"canRemove": true,
"name": "httpCORSHeadersEnabled",
"value": "true",
"defaultValue": true,
"type": "Boolean",
"sectionName": "Application",
"section": "/Root/Application/HTTPStreamer",
"documented": true
}
]
}

```

Thanks,

Ram

---

<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: [May 27, 2017, 1:34am UTC](https://community.wowza.com/t/cant-start-the-stream-from-gocoder-after-calling-the-update-application-api/48853/3 "2017-05-27T01:34:51Z")

</div>

Hi Ram,

The error from JWPlayer may not be related to CORS issues. It is best if we can check your Wowza instance configuration and log events. Please [create a support ticket](https://www.wowza.com/support/open-ticket) and send us the following:

- conf/

- logs/

Michelle

---

<div class="post-metadata">

### Author: ![Paris\_Yates](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Paris\_Yates](https://community.wowza.com/u/Paris_Yates)
#### Post date: [May 29, 2017, 1:48pm UTC](https://community.wowza.com/t/cant-start-the-stream-from-gocoder-after-calling-the-update-application-api/48853/4 "2017-05-29T13:48:00Z")

</div>

Hi Michelle,  
I am calling update API due to the CORS issue. But after update API executes my Gocoder encoder couldn’t connect with the engine. I already opened a ticket regarding this. Still that is in open state. My ticket Id is #229918.

---

<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: [June 10, 2017, 12:36am UTC](https://community.wowza.com/t/cant-start-the-stream-from-gocoder-after-calling-the-update-application-api/48853/5 "2017-06-10T00:36:09Z")

</div>

Hi, when you compare the XML files before and after applying the update, what differences do you see? Do you also perform a restart for the app right after sending the update command?
