Login with js API ends with 'unknown error 2147483647'

Hello Milestone Community !

I try to get a simple playback of videos from the js web api sample “MultiCameraPlayback” I found on the github page.

When testing on my side, it is working well, but on my customer side, at the login response I have :

Response error Unknown 2147483647

As the code is the same both side, what should I check to sort this ?

(it is not credentials related, I double checked)

Version of milestone (both side) : 22.3c

Thanks !

Jeremy

Hi Jeremy,

Error code indicates an unknown and unexpected server-side error but there’s no way for me to tell where and why did that happen without some more info.

Can you please provide a wireshark trace (over http, not https)?

Br,

Nikolay

Hello Nikolay,

I attached a wireshark trace from the server.

I also check the log folder of “MIPSDK” and I found this 2 records at my testing time (I removed the server name for privacy) :

2023-04-12 09:53:25.576 Debug: ProxyClientBase (): Creating an HTTP client using uri: http://server_name.local/

2023-04-12 09:53:26.341 Debug: LoginServerOauth.CreateClient (): Creating an HTTP client using uri: http://server-name/ManagementServer/ServerCommandServiceOAuth.svc

hope it helps !

Jeremy

Hi Jeremy,

I can see only the requests (no responses) in the trace but things look more or less fine.

Here are some troubleshooting steps I can propose:

  • change Mobile server log level to 4, restart server, try again and see if there’s anything useful in the log file (Mobile server log, not MIP SDK)
  • try using Web client or a mobile client, to see if it works with your customer’s setup
  • double-check administrative settings for suspicious settings - e.g. disabled Web client access
  • try providing to Login command. It’s currently missing in your trace

Good morning

Jérémy is on vacation I take the hand during his absence.

We have checked the first last points and modified the Mobile server log level to 4.

we still have the same error with a priori in the logs a login error see screenshots below.

Cordially

Logs milestone 2

there are two requests that result in the message: No challenges in the list!

then the error messages

First request

Logs milestone 3

Second request

Errors

Hi!

Screenshot gives no useful information on why the error happens… it’s not enough.

I want to make it clear - I suspect a problem in your setup and not in the Mobile server (or Mobile SDK) code but there’s no way for me to verify that. You are the one who have access to the setup so please try to understand what works and then maybe you can proceed with what doesn’t work.

Here are several ideas to try:

  • Please make sure to try login win Web Client and explicitly confirm that it works. If it doesn’t work, there’s no point trying to test the samples.
  • Also try Web Client on the environment which works fine. Open your browser’s DevTools and examine the communication requests and responses on Connect and Login. Then compare the xml’s on the working setup against the ones from the problematic setup.
  • Also compare Mobile server configuration ([C:\Program](file:C:/Program) Files\Milestone\XProtect Mobile Server\VideoOS.MobileServer.Service.exe.config) and look for differences.