Devices app returns error when app backend tries to login (blocking)
Hi, we are creating our own mechanism of the Servics API to be able to work with all services (e.g. the Files api) from the back-end, since at this time it only allows to work with the devices api. However, when we login with our app implementation in the devices app for example, the devices app returns an error... unfortunately, the devices app logging doesn't tell us why it returns an error (all diagnostic levels are enabled). See the below output of the devices app from the app platform, the error line is marked in red. Attached to this ticket you can find the log output of our application, which I think does all things right: it gets a challenge from the devices app, uses the services api to get a service login from the pbx and then performs an applogin on the devices app. I've also implemented this with the ServicesApi implementation from innovaphone (and then it suddenly works), and, the message flow is 100% identical, even the message content is exactly the same except for the authentication related attributes such as digest and so on. Why do I get this error? How can I figure out what I'm doing wrong and which values in my message cause this error?
Applogging.txt
12-03 07:19:07.038 devices@xqting.be WebserverPlugin(0x1b61a8,0x1b60d0)::SocketRecvResult: Received message WSM_WEBSOCKET_LISTEN_RESULT (data size: 52)
12-03 07:19:07.038 devices@xqting.be IWebsocket(connection id: 9915)::IWebsocket(): resourceName: '/', reqPathForRequest: ''
12-03 07:19:07.038 devices@xqting.be WebserverPlugin(001b60d0,001b5cc8)::WebserverPluginWebsocketListenResult(): path = /, registeredPathForRequest = , host = 10.0.0.241
12-03 07:19:07.038 devices@xqting.be AppWebsocket(001feff8)::AppWebsocket
12-03 07:19:07.038 devices@xqting.be WebserverPlugin(001b60d0,001b5cc8)::WebsocketAccept(): user = 0x001feff8
12-03 07:19:07.038 devices@xqting.be WebserverPlugin(connection id: 9915)::WebsocketAccept() request accepted
12-03 07:19:07.038 devices@xqting.be WebserverMessage(connection id: 88)::WebsocketSend: Sending Websocket message WS_WEBSOCKET_CONNECT_ACCEPT (fragmented: false, text: false, sdata ize: 0)
12-03 07:19:07.039 devices@xqting.be IWebsocket(connection id: 9915)::SocketRecvResult(): Received Websocket message WS_WEBSOCKET_CONNECT_COMPLETE (fragmented: false, text: false, data size: 0)
12-03 07:19:07.039 devices@xqting.be WebserverWebsocketHandler(001cfae8,001feff8,9915)::Recv buffer:0x00000000 len:0
12-03 07:19:07.039 devices@xqting.be WebserverMessage(connection id: 9915)::WebsocketSend: Sending Websocket message WS_WEBSOCKET_RECV (fragmented: false, text: false, sdata ize: 0)
12-03 07:19:07.045 devices@xqting.be IWebsocket(connection id: 9915)::RecvBuffer(): size: 21
12-03 07:19:07.045 devices@xqting.be IWebsocket(connection id: 9915)::SocketRecvResult(): Received Websocket message WS_WEBSOCKET_RECV_RESULT (fragmented: false, text: true, data size: 21)
12-03 07:19:07.045 devices@xqting.be WebserverWebsocketHandler(001cfae8,001feff8,9915)::Send buffer:0x7eaf6790 len:58 text:TRUE
12-03 07:19:07.045 devices@xqting.be WebserverMessage(connection id: 9915)::WebsocketSend: Sending Websocket message WS_WEBSOCKET_SEND (fragmented: false, text: true, sdata ize: 58)
12-03 07:19:07.045 devices@xqting.be AppWebsocket(001feff8)::AppWebsocketRecv
12-03 07:19:07.045 devices@xqting.be WebserverWebsocketHandler(001cfae8,001feff8,9915)::Recv buffer:0x00000000 len:0
12-03 07:19:07.045 devices@xqting.be WebserverMessage(connection id: 9915)::WebsocketSend: Sending Websocket message WS_WEBSOCKET_RECV (fragmented: false, text: false, sdata ize: 0)
12-03 07:19:07.046 devices@xqting.be IWebsocket(connection id: 9915)::SocketRecvResult(): Received Websocket message WS_WEBSOCKET_SEND_RESULT (fragmented: false, text: false, data size: 0)
12-03 07:19:07.046 devices@xqting.be AppWebsocket(001feff8)::WebsocketSendResult() connected=0 sendCount=0
12-03 07:19:07.107 devices@xqting.be IWebsocket(connection id: 9915)::RecvBuffer(): size: 455
12-03 07:19:07.108 devices@xqting.be IWebsocket(connection id: 9915)::SocketRecvResult(): Received Websocket message WS_WEBSOCKET_RECV_RESULT (fragmented: false, text: true, data size: 455)
12-03 07:19:07.108 devices@xqting.be WebserverWebsocketHandler(001cfae8,001feff8,9915)::Send buffer:0x7eaf6790 len:51 text:TRUE
12-03 07:19:07.108 devices@xqting.be WebserverMessage(connection id: 9915)::WebsocketSend: Sending Websocket message WS_WEBSOCKET_SEND (fragmented: false, text: true, sdata ize: 51)
12-03 07:19:07.108 devices@xqting.be AppWebsocket(001feff8)::Error
12-03 07:19:07.108 devices@xqting.be WebserverWebsocketHandler(001cfae8,001feff8,9915)::Close
12-03 07:19:07.109 devices@xqting.be IWebsocket(connection id: 9915)::SocketRecvResult(): Received Websocket message WS_WEBSOCKET_SEND_RESULT (fragmented: false, text: false, data size: 0)
12-03 07:19:07.109 devices@xqting.be AppWebsocket(001feff8)::WebsocketSendResult() connected=0 sendCount=0
12-03 07:19:07.109 devices@xqting.be ExtendedHeader::Encode(): Extended header encoded (cid: 9915, h-len: 7, b-size: 11)
12-03 07:19:07.109 devices@xqting.be WebserverMessage(connection id: 9915)::WebsocketSend: Sending Websocket message WS_WEBSOCKET_CLOSE (fragmented: false, text: false, sdata ize: 11)
12-03 07:19:07.120 devices@xqting.be IWebsocket(connection id: 9915)::SocketRecvResult(): Received Websocket message WS_WEBSOCKET_CLOSE_COMPLETE (fragmented: false, text: false, data size: 2)
12-03 07:19:07.120 devices@xqting.be IWebsocket(connection id: 9915)::~IWebsocket()
12-03 07:19:07.120 devices@xqting.be AppWebsocket(001feff8)::AppWebsocketClosed
12-03 07:19:07.120 devices@xqting.be AppWebsocket(001feff8)::~AppWebsocket
12-03 07:19:07.121 devices@xqting.be WebserverPlugin(0x1b61a8,0x1b60d0)::SocketRecvResult: Received message WSM_SHUTDOWN_COMPLETE (data size: 0)
12-03 07:19:07.121 devices@xqting.be WARNING: IWebserverPlugin received unexpected message (WSM_SHUTDOWN_COMPLETE) - ignoring
