Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-986

.NET Connector Server - Failed to Accept WebSocket

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: framework-1.5.6.0
    • Fix Version/s: framework-1.5.6.0
    • Component/s: Connector Framework
    • Environment:
      .net connector server 1.5.6.0-SNAPSHOT d8c0a8406eb, OpenIDM 6.5.0-SNAPSHOT (516a5dd)
      MSPowershellConnector 1.4.5.0 (c0ce703a371), Python 3.6.5,Java JDK 1.8.0_152, Windows 2008/2012/2016

      Description

      After update to 1.5.6.0-SNAPSHOT, Connector server started to throw exceptions below
      Connector server logs

      ConnectorServerService.exe Error: 0 : Failed to Accept WebSocket
      Exception :
      Type: System.ArgumentException
      Message: An item with the same key has already been added.
      Source: mscorlib
      Stacktrace:    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
         at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
         at vtortola.WebSockets.HttpHeadersCollection.Add(String name, String value)
         at vtortola.WebSockets.WebSocketHandshaker.ParseHeader(String line, WebSocketHandshake handshake)
         at vtortola.WebSockets.WebSocketHandshaker.<ReadHttpRequestAsync>d__10.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at vtortola.WebSockets.WebSocketHandshaker.<HandshakeAsync>d__3.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at vtortola.WebSockets.WebSocketListener.<AcceptWebSocketAsync>d__23.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
         at Org.ForgeRock.OpenICF.Framework.ConnectorServerService.VtortConnectorServiceHost.<ListenAsync>d__c.MoveNext() in e:\jenkins\workspace\OpenICF - dotnet-framework - postcommit\ConnectorServerService\ConnectorServerService.cs:line 344
      

      Can be reproduced by pyforge tests

      ./run-pybot.py --suite frameworks.*.dotnet*websockets --test AbsentIf_Null_True OpenIDM

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gael Gael Allioux
                Reporter:
                michal.orlik@profiq.cz Michal Orlik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: