Hello,
I am getting the error 12: Wrong connection ID every time I try to login. Doing the Connect Request first, after that I am getting the Public Key and ConnectionId out of the response.
After that I send the Login Request and every time I get the same 12 error.
This is the Login Command that I am sending
<?xml version="1.0" encoding="utf-8"?>
498b2606-db4e-4f5e-a92a-1d178bc1af49
Request
LogIn
Hi Jose,
Could you please provide wireshark trace of the communication ?
Btw, why are you using protocol integration ?
Isn’t it possible to use directly some of the MIP SDK Mobile options ?
You are integrating on Linux, Java or Node.js probably ?
(Usually SDK integration is faster and easier :-))
Correct. I am using a Java Backend. Not sure what do you want me to send.
I am sending the Connect Request, with the generated Public Key. The Server responds Success with the newly generated Public Key and the Connection ID, use those values to generate the Login request and it responds with 12: Wrong connection ID.
Just figured the issue… for some reason the ClientType is not Optional like the documentation says…I just set it as WebClient and now I am being able to Login Successfully…
Thanks…
Well… now I am getting the same error for any commands that I send… getting error 23 for all of them. I am trying to get all the doors in the system, also tried GetViews as the documentation says… and always the same error…
Hi Jose,
You most probably are trying to send commands after Connect and before successful LogIn or you are not supplying valid ConnectionId in commands.
You were correct. I was using the incorrect Connection ID. Everything is working now. Thanks