Skip to content

Getting error while sending a message to another stateless service #261

Open
@thakursagar

Description

@thakursagar

Hi,

Trying to send a message using Service Fabric Remoting Services (ServiceProxy.Create) and getting the following error:

[{"parsedStack":[{"assembly":"Microsoft.ServiceFabric.Services, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","method":"Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1+<InvokeWithRetryAsync>d__23`1.MoveNext","level":0,"line":0},{"assembly":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","method":"System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw","level":1,"line":0},{"assembly":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","method":"System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification","level":2,"line":0},{"assembly":"Microsoft.ServiceFabric.Services.Remoting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","method":"Microsoft.ServiceFabric.Services.Remoting.V1.Client.ServiceRemotingPartitionClient+<InvokeAsync>d__2.MoveNext","level":3,"line":0},{"assembly":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","method":"System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw","level":4,"line":0},{"assembly":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","method":"System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification","level":5,"line":0},{"assembly":"Microsoft.ServiceFabric.Services.Remoting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","method":"Microsoft.ServiceFabric.Services.Remoting.Builder.ProxyBase+<InvokeAsync>d__15.MoveNext","level":6,"line":0},{"assembly":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","method":"System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw","level":7,"line":0},{"assembly":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","method":"System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification","level":8,"line":0},{"assembly":"Microsoft.ServiceFabric.Services.Remoting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","method":"Microsoft.ServiceFabric.Services.Remoting.Builder.ProxyBase+<ContinueWithResult>d__16`1.MoveNext","level":9,"line":0},{"assembly":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","method":"System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw","level":10,"line":0},{"assembly":"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","method":"System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification","level":11,"line":0},{"assembly":"Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null","method":"Common.SignalR.SignalRBroadcastClient+<Broadcast>d__1.MoveNext","level":12,"line":0}],"outerId":"0","message":"One or more errors occurred.","severityLevel":"Error","type":"System.AggregateException","id":"65652211"},{"outerId":"65652211","message":"The stream has been closed.","severityLevel":"Error","type":"System.InvalidOperationException","id":"48378117"}]

Service Proxy code:

 IHandleSignalRBroadcast webServiceClient = ServiceProxy.Create<IHandleSignalRBroadcast>(_internalSignalRBroadcastUri);
                var serializedMessage = JsonConvert.SerializeObject(message,
                    new JsonSerializerSettings
                    {
                        ContractResolver = new CamelCasePropertyNamesContractResolver()
                    });
                var response = await webServiceClient.HandleBroadcast(groupName, methodName, serializedMessage).ConfigureAwait(false);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions