Mobile web server and mobile protocol fails when trying to export video.

Hi, when we try to export video through mobile protocol or mobile web it fails (Error Code 15, but we are successfully logged in). When we export video using Smart Client it exports correctly.

Here I paste the request:

<ConnectionId>0d0070b9-6105-4d02-ac97-22bdf0f27523</ConnectionId >

<Command SequenceId="31">

    <Type>Request</Type>

    <Name>StartExport</Name>

    <InputParams>

        <Param Name="ExportId" Value="92e175c7-9c82-4b7c-a2e7-c7a9fc380148" />

    </InputParams>

</Command>

And now, the response from server:

<ConnectionId>0d0070b9-6105-4d02-ac97-22bdf0f27523</ConnectionId>

<Command SequenceId="31">

    <Type>Response</Type>

    <Name>StartExport</Name>

    <InputParams />

    <OutputParams />

    <Result>Error</Result>

    <ErrorCode>15</ErrorCode>

</Command>

Thank you!

Error code 15 = Incorrect user password

First a sanity check, if you do the export in the Web Client using the same user, does it succeed?

The check might be superfluous because I think the request is lacking some needed parameters. Please check - Mobile Server protocol - Command Channel in the MIP SDK Documentation specifically the StartExport section.

Snippet from the section :

Request example

<?xml version="1.0" encoding="utf-8"?>

<Communication

xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)"

xmlns:xsd="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)">

<ConnectionId>96ce0e61-22e6-4085-ab7a-a3ad23002dfe</ConnectionId >

<Command SequenceId="533">

    <Type>Request</Type>

    <Name>StartExport</Name>

    <InputParams>

        <Param Name="CameraId" Value="230ae9f1-17bc-4c3b-806f-9fdf048fe760"/>

        <Param Name="StartTime" Value="1351867879187" />

        <Param Name="EndTime" Value="1351867915614" />

        <Param Name="Type" Value="Avi" />

    </InputParams>

</Command>

Thank you for your reply.

The user/passwd are correct. After some modification now the asked the server with:

<?xml version="1.0" encoding="utf-8"?>
<ConnectionId>91c6d936-0c7b-45e2-9d68-84de68e6b4d4</ConnectionId >

<Command SequenceId="13">

    <Type>Request</Type>

    <Name>StartExport</Name>

    <InputParams>

        <Param Name="ProcessingMessage" Value="No" />

        <Param Name="CameraId" Value="4609180c-a64c-4896-8948-961031e65d4c" />

        <Param Name="Type" Value="Avi" />

        <Param Name="EndTime" Value="1448298071467" />

        <Param Name="StartTime" Value="1448298057549" />

    </InputParams>

</Command>

But now, it responds:

<?xml version="1.0" encoding="utf-8"?>
<ConnectionId>91c6d936-0c7b-45e2-9d68-84de68e6b4d4</ConnectionId>

<Command SequenceId="13">

    <Type>Response</Type>

    <Name>StartExport</Name>

    <InputParams />

    <OutputParams />

    <Result>Error</Result>

    <ErrorCode>23</ErrorCode>

</Command>

Error Code 23 = Not allowed in this state

What does it means? Why can it be not allowed?

Thank you very much.

On error 23 : The only way that should happen should be if the client hasn’t login successfully.

(Connect command passed okay, but Login command failed, or it’s response hasn’t yet returned)

Ok, that was happenning exactly. Fixed and working fine, thank you very much.