RequestStream response error: not allowed in this state 23

What does mean the NotAllowedInThisState 23 Error ?

What is the cause and how can i solve it?

I get this error when I try to request a stream of camera to the mobile server.

Follow the request and the response.

Request
<?xml version="1.0" encoding="utf-8"?><Communication xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Command SequenceId="13"><Type>Request</Type><Name>LiveMessage</Name><InputParams></InputParams></Command></Communication>
Response error NotAllowedInThisState 23 Complete response: <?xml version="1.0" encoding="utf-8"?><Communication xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Command SequenceId="13"><Type>Response</Type><Name>LiveMessage</Name><InputParams /><OutputParams /><Items /><Result>Error</Result><ErrorCode>23</ErrorCode></Command></Communication>

Hi Alessandro,

I do not see in your XML essential part - the connection id.

It is Guid that is identifying uniquely the connection to the Mobile Server.

It should look something like :

<ConnectionId>5125f566-e520-43b0-ae88-bf0f07e9ce8c</ConnectionId>

ConnectionId is assigned / received from the server as part of the “Connect” command response.

After that you have to call “Login” command.

And after that you could call all other commands.

The provided example is from “LiveMessage” command, not from “RequestStream” command. But what I’ve described concerns all the commands anyway.

If you target “Protocol” integration, good starting point is the online documentation. Click on “Getting started ..” and then “Mobile Server protocol”.

Btw, in what language / platform you are trying build your product ? I’m just curious if one of the Mobile SDK’s could fit your needs.