push to facebook: unsupported media type

Gabriel T

Member
Hello
im trying to push to facebook and get the following error as result of the rest query:

https://xxx.com:8888/rest-api/push/startup 415 (Unsupported Media Type)

here is the jquery code im using (where streamID is the streamName):
function pushToFaceBook(streamID) {
$.post('https://xxxcom:8888/rest-api/push/startup', {
"streamName": streamID,
"rtmpUrl": 'rtmps://live-api.facebook.com:443/rtmp/xxx?s_ps=1&a=xxx'
}, function(serverResponse){
})
}
using latest wcs5 build, ubuntu 14.04

any clue ?

beside this, new error coming from time to time:

04:44:49,913 ERROR HLSServerHandler - HLS-HTTP-pool-14-thread-1 HTTP error
java.lang.ArrayIndexOutOfBoundsException: -2
at com.flashphoner.server.B.F.messageReceived(Unknown Source)
at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(Unknown Source)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Unknown Source)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.channel.socket.nio.NioWorker.read(Unknown Source)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(Unknown Source)
at org.jboss.netty.channel.socket.nio.DeadlockAwareNioWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
 
Top