# TypeError: empty iceCandidaes

**URL:** https://mediasoup.discourse.group/t/typeerror-empty-icecandidaes/5185
**Category:** mediasoup libraries
**Created:** [April 24, 2023, 11:59am UTC](https://mediasoup.discourse.group/t/typeerror-empty-icecandidaes/5185 "2023-04-24T11:59:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![crufter](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/crufter/32/2152_2.png) [@crufter](https://mediasoup.discourse.group/u/crufter)
#### Post date: [April 24, 2023, 11:59am UTC](https://mediasoup.discourse.group/t/typeerror-empty-icecandidaes/5185/1 "2023-04-24T11:59:06Z")

</div>

Hi there!

I am hacking on a little app based on the demo.

I get the following error:

```plaintext
protoo Peer "request" event [method:createWebRtcTransport, peerId:nht5hyyq]
request failed:TypeError: empty iceCandidates [method:router.createWebRtcTransportWithServer]
    at Channel.processMessage (...node_modules/mediasoup/node/lib/Channel.js:196:37)
    at Socket.<anonymous> (.../node_modules/mediasoup/node/lib/Channel.js:69:34)
    at Socket.emit (node:events:526:28)
    at Socket.emit (node:domain:475:12)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {

```

Anyone knows a., what might be the cause b., how could I learn to debug mediasoup issues?

Cheers

Edit:

Seems like when porting from JS to TS I mistakenly disabled both UDP and TCP!  
Enabled both and now data is flowing.

Thanks
