securityError 19 message when trying to perform requestStream (Mobile SDK)

Hello Milestone Community :slight_smile:

When trying to request a stream via the mobileSDK, I have a longer waiting time since few days, because of a new error :

Response error SecurityError 19

(full error in attachement)

It happens after the login, and it can occurs 2 or 4 times before displaying the stream.

My code hasn’t change so maybe it is a configuration on the server side ?

Thanks for your help,

have a nice day,

Jeremy

Hi Jeremy,

There are two scenarios when server will return SecurityError 19.

The first one is in the Connect Command which you seems to have passed successfully so lets look at the second one.

If CHAP is enabled on the server every command send by the integration will contain a challenge that is verified by the server. If a challenge is older than an hour or it’s not valid the error code will be 19.

Something else you might look for in the mobile server logs is ‘CheckChallenge’ error lines.

What you can do is

  1. in case your session is longer than our make sure not using old challenges
  2. disable chap by ‘supportsCHAP’ flag described here https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/XPMobileSDKSettings.html
  3. make sure no challenge logs in the logs

Hello Stoyan,

disabling supportsCHAP, I don’t have any “error getting challenges” and “securityerror 19” anymore.

thanks !

Just so I understand better, since the begining, I have, after login, an error getting challenge. (even with the MultiplePlayback sample out of the box)

What can explain this error, until now, this error didn’t affect us so much, so I admin, I let it go and didn’t dig on this.

But why there was an error, as the login was good, and the requestStream give me the video feed ?

Anyway, thanks for the help ! I don’t have the error now, and it seems a little faster

Jeremy