# Marshalling issue when using signals

**URL:** <https://community.temporal.io/t/marshalling-issue-when-using-signals/7372>\
**Category:** Community Support\
**Tags:** go-sdk, signals\
**Created:** [February 23, 2023, 2:31am UTC](https://community.temporal.io/t/marshalling-issue-when-using-signals/7372 "2023-02-23T02:31:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darewreck](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@darewreck](https://community.temporal.io/u/darewreck)\
**Post date:** [February 23, 2023, 2:31am UTC](https://community.temporal.io/t/marshalling-issue-when-using-signals/7372/1 "2023-02-23T02:31:16Z")

</div>

I have a workflow which supports signals. Whenever I trigger the signals, the signal gets registered with the workflow but I also end up getting the following error message and wanted to get some advice on how to trouble shoot this. It still works, but not not sure whats up with the error

```auto
ERROR: [core] [Server #8] grpc: server failed to encode response: rpc error: code = Internal desc = grpc: error while marshaling: proto: Marshal called with nil

```

The way I setup the selector is pretty straightforward

```auto
selector := workflow.NewSelector(ctx)
selector.AddReceive(tw.GetSignalChannel(ctx, "Signal"), func(c workflow.ReceiveChannel, more bool) 
{
     c.Receive(ctx, nil)
})

```

The way I trigger it is

```auto
err = wfClient.SignalWorkflow(ctx, request.GetWorkflowId(), "", "Signal", nil)

```

I don’t know what I’m marshaling here since i’m not passing any objects to the signal.

Any advice appreciated?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [March 2, 2023, 4:13pm UTC](https://community.temporal.io/t/marshalling-issue-when-using-signals/7372/3 "2023-03-02T16:13:24Z")

</div>

Whats the Go SDK version you are using?

There’s not a need to use Selector when receiving from a single channel,  
You could do

```auto
sc := tw.GetSignalChannel(ctx, "Signal")
sc.Receive(ctx, nil) // in loop if needed

```

d

Can you give that a try and see if you run into same issue?
