# Trouble trying to connect to my own connector

**URL:** <https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475>\
**Category:** General Questions\
**Created:** [April 5, 2019, 3:41pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475 "2019-04-05T15:41:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![italo.nascimento](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/italo.nascimento/32/232_2.png) [@italo.nascimento](https://forum.interledger.org/u/italo.nascimento)\
**Post date:** [April 5, 2019, 3:41pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/1 "2019-04-05T15:41:53Z")

</div>

Hi everyone.

I’ve just started to study about Interledger and am still struggling with some basics. Hope someone here can help!

I’ve managed to get a connector up and running by following Adrian’s tutorial [Running your own ILP connector](https://medium.com/interledger-blog/running-your-own-ilp-connector-c296a6dcf39a), but I’m facing issues when I try to connect with it from a moneyd instance running on my machine.

The local moneyd instance gets to comunicate with the remote connector, but is not abble to create a channel due to an `undefined` destination:

```auto
info creating outgoing channel. from=r3EhvL6a9ADrtrwd5XMQZnnDmroR9urvw5 to=undefined amount=10
app error [ValidationError(instance.paymentChannelCreate requires property "destination")]

```

Appearently there’s something wrong in the connector configs, as I was abble to connect to a different connector (`testnet.ilpnetwork.dev`) using similar moneyd config.

What am I missing?

Here is my current config:

```auto
DEBUG: 'ilp*,connector*',
CONNECTOR_ENV: 'production',
CONNECTOR_ADMIN_API: true,
CONNECTOR_ADMIN_API_PORT: 7700,
CONNECTOR_ILP_ADDRESS: 'g.swipetech',
CONNECTOR_BACKEND: 'one-to-one',
CONNECTOR_SPREAD: '0',
CONNECTOR_STORE: 'ilp-store-redis',
CONNECTOR_STORE_CONFIG: '{
  "prefix": "connector",
  "port": 6379
}',
 CONNECTOR_ACCOUNTS: '{
  "peer1": {
    "relation": "peer",
    "plugin": "ilp-plugin-xrp-paychan",
    "assetCode": "XRP",
    "assetScale": 9,
    "balance": {
      "maximum": "1000000000",
      "settleThreshold": "-5000000000",
      "settleTo": "0"
    },
    "options": {
      "listener": {
        "port": 7444,
        "secret": "<RANDOM SECRET>"
      },
      "rippledServer": "wss://s.altnet.rippletest.net:51233",
      "address": "r99HvXMMCYf8KApw14a71zJLMHkKZhfD5V",
      "secret": "<MY XRP SECRET>"
    }
  },
  "ilsp": {
    "relation": "child",
    "plugin": "ilp-plugin-xrp-asym-server",
    "assetCode": "XRP",
    "assetScale": 6,
    "options": {
      "port": 7443,
      "xrpServer": "wss://s.altnet.rippletest.net:51233",
      "address": "r99HvXMMCYf8KApw14a71zJLMHkKZhfD5V",
      "secret": "snxeX5985xvuuK28nGBFGReeuHa8c"
    }
  }
}'

```

---

<div class="post-metadata">

**Author:** ![wek120](https://avatars.discourse-cdn.com/v4/letter/w/b77776/32.png) [@wek120](https://forum.interledger.org/u/wek120)\
**Post date:** [April 5, 2019, 11:39pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/2 "2019-04-05T23:39:50Z")

</div>

John,

Just a bit more context to my earlier message.

Can you believe this stuff???

-Whit

---

<div class="post-metadata">

**Author:** ![austin\_king](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/austin_king/32/145_2.png) [@austin\_king](https://forum.interledger.org/u/austin_king)\
**Post date:** [April 6, 2019, 6:18pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/3 "2019-04-06T18:18:39Z")

</div>

Hi Italo,

Glad to hear that you’re playing around with deploying a connector. How are you running moneyd to connect? It looks like the last time that the moneyd connector\_list was updated was 18 days ago so I think that by default moneyd is trying to connect to another connector in the network and not your own. Are you editing the ~/.moneyd.test.json to connect to your host?

---

<div class="post-metadata">

**Author:** ![italo.nascimento](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/italo.nascimento/32/232_2.png) [@italo.nascimento](https://forum.interledger.org/u/italo.nascimento)\
**Post date:** [April 8, 2019, 1:23pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/4 "2019-04-08T13:23:17Z")

</div>

Hi Austin!

Yeah, I have edited my moneyd.test.json, and I’m successfully comunicating with the connector. I can verify that in it’s logs.

I’m guessing there’s something wrong in the connector’s side, as I was able to connect to the testnet with a similar moneyd config. I’ve just changed the server’s btp address.

---

<div class="post-metadata">

**Author:** ![austin\_king](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/austin_king/32/145_2.png) [@austin\_king](https://forum.interledger.org/u/austin_king)\
**Post date:** [April 9, 2019, 8:16pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/5 "2019-04-09T20:16:52Z")

</div>

Hi Italo, if you are able to establish communication with your connector but are failing to send payments then I would check the plugin config on your connector. It looks like you might be missing a few fields within options of your “ilsp” account. Specifically, try adding assetScale within options as well. Also, you should be using an assetScale of 9 instead of 6.

If that doesn’t change anything I would also make sure that moneyd is running on the testnet because it looks like your connector plugin XRP address is a testnet address. Let me know if you’re still having issues after this.

---

<div class="post-metadata">

**Author:** ![italo.nascimento](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/italo.nascimento/32/232_2.png) [@italo.nascimento](https://forum.interledger.org/u/italo.nascimento)\
**Post date:** [April 10, 2019, 8:52pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/6 "2019-04-10T20:52:54Z")

</div>

Hey Austin,

My options looks like this right now:

```auto
options: {
    listener: {
      port: 8000,
      secret: "<RANDOM SECRET>"
    },
    assetScale: 9,
    rippledServer: "wss://s.altnet.rippletest.net:51233",
    address: "<XRP ADDRESS>",
    secret: "<XRP SECRET>",
    peerAddress: "<PEER XRP ADDRESS>",
  }

```

Though I’m still getting the same error. The `ilp-plugin-xrp-asym-client` is unable to open a payment channel because it’s getting an undefined `peerAddress`:

```auto
error [ValidationError(instance.paymentChannelCreate requires property "destination")]

```

---

<div class="post-metadata">

**Author:** ![austin\_king](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/austin_king/32/145_2.png) [@austin\_king](https://forum.interledger.org/u/austin_king)\
**Post date:** [April 10, 2019, 10:01pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/7 "2019-04-10T22:01:34Z")

</div>

Hi Italo, peerAddress is not a valid option for ilp-plugin-xrp-asym-server. The asym-server allows many clients to connect, so there is no need to specify a single peer address.

---

<div class="post-metadata">

**Author:** ![italo.nascimento](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/italo.nascimento/32/232_2.png) [@italo.nascimento](https://forum.interledger.org/u/italo.nascimento)\
**Post date:** [April 11, 2019, 2:55pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/8 "2019-04-11T14:55:10Z")

</div>

Ok, that makes sense! But why would moneyd try to open a payment channel with `undefined` destination? Is it getting a malformed response from the connector?

---

<div class="post-metadata">

**Author:** ![austin\_king](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/austin_king/32/145_2.png) [@austin\_king](https://forum.interledger.org/u/austin_king)\
**Post date:** [April 15, 2019, 5:20pm UTC](https://forum.interledger.org/t/trouble-trying-to-connect-to-my-own-connector/475/9 "2019-04-15T17:20:58Z")

</div>

That is likely an indication that one of the XRP addresses is misconfigured, either on the connector end or the moneyd end.
