Skip to content

Connecting to ServiceControl from a redirected URL fails #1042

@HEskandari

Description

@HEskandari

Who's affected

Customers connecting to a ServiceControl instance via a redirected URL are affected by this bug.

Symptoms

When connecting to a ServiceControl instance via a redirected URL, ServiceInsight accepts the connection but fails to retrieve messages with the following exception:

System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at ServiceInsight.ServiceControl.DefaultServiceControl.<>c__DisplayClass39_0`1.<GetPagedResult>b__0(IRestResponse`1 response) in /_/src/ServiceInsight/ServiceControl/DefaultServiceControl.cs:line 306
   at ServiceInsight.ServiceControl.DefaultServiceControl.ProcessResponse[T,T2](Func`2 selector, IRestResponse`1 response) in /_/src/ServiceInsight/ServiceControl/DefaultServiceControl.cs:line 604
   at ServiceInsight.ServiceControl.DefaultServiceControl.<Execute>d__42`2.MoveNext() in /_/src/ServiceInsight/ServiceControl/DefaultServiceControl.cs:line 531
--- 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 ServiceInsight.MessageList.MessageListViewModel.<RefreshMessages>d__46.MoveNext() in /_/src/ServiceInsight/MessageList/MessageListViewModel.cs:line 163
--- 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 ServiceInsight.MessageList.MessageListViewModel.<RefreshMessages>d__45.MoveNext() in /_/src/ServiceInsight/MessageList/MessageListViewModel.cs:line 149
--- 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 ServiceInsight.Shell.ShellViewModel.<RefreshAll>d__106.MoveNext() in /_/src/ServiceInsight/Shell/ShellViewModel.cs:line 256
--- 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 ServiceInsight.Framework.Commands.AsyncDelegateCommand.<Execute>d__2.MoveNext() in /_/src/ServiceInsight/Framework/Commands/AsyncDelegateCommand.cs:line 15
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions