interledgerjs / moneyd

Connect your machine to the Interledger
110 stars 51 forks source link

Cannot read property 'Account' of undefined #45

Open KoenWellekens opened 6 years ago

KoenWellekens commented 6 years ago

When I try to run moneyd-xrp i get the followin error:

Debug log entries:

2018-06-17T09:35:31.329Z ilp-plugin-xrp-asym-client creating outgoing channel 2018-06-17T09:35:31.706Z ilp-plugin-xrp-asym-client signing transaction 2018-06-17T09:35:32.152Z ilp-plugin-xrp-asym-client submitted outgoing channel tx to validator 2018-06-17T09:35:32.152Z ilp-plugin-xrp-asym-client waiting for transaction to be added to the ledger 2018-06-17T09:35:36.189Z ilp-plugin-xrp-asym-client transaction complete 2018-06-17T09:35:36.592Z ilp-plugin-xrp-asym-client no client channel has been established; requesting 2018-06-17T09:35:48.086Z ilp-plugin-btp processing btp packet {"type":2,"requestId":161871734,"data":{"code":"F00","name":"NotAcceptedError","triggeredAt":"2018-06-17T09:35:48.032Z","data":"Cannot read property 'Account' of undefined","protocolData":[]}} 2018-06-17T09:35:48.086Z ilp-plugin-btp received BTP packet (TYPE_ERROR, RequestId: 161871734): {"code":"F00","name":"NotAcceptedError","triggeredAt":"2018-06-17T09:35:48.032Z","data":"Cannot read property 'Account' of undefined","protocolData":[]}

2018-06-17T09:35:48.087Z connector:app error Error: {"code":"F00","name":"NotAcceptedError","triggeredAt":"2018-06-17T09:35:48.032Z","data":"Cannot read property 'Account' of undefined","protocolData":[]}

    at Plugin.callback (/usr/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/index.js:343:20)
    at Object.onceWrapper (events.js:273:13)
    at Plugin.emit (events.js:182:13)
    at Plugin._handleIncomingBtpPacket (/usr/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/index.js:378:14)
    at Plugin._handleIncomingWsMessage (/usr/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/index.js:274:18)
    at WebSocketReconnector.EventEmitter.emit (/usr/lib/node_modules/moneyd-uplink-xrp/node_modules/eventemitter2/lib/eventemitter2.js:357:19)
    at WebSocket._instance.on (/usr/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/ws-reconnect.js:20:61)
    at WebSocket.emit (events.js:182:13)
    at Receiver._receiver.onmessage (/usr/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/node_modules/ws/lib/WebSocket.js:141:47)
    at Receiver.dataMessage (/usr/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/node_modules/ws/lib/Receiver.js:380:14)
jnieuwenhuijzen commented 6 years ago

I am getting this error too (trying to connect for the 1st time). Did you manage to solve it?

Connecting to 'ilp.worldconnector.link' btw. I will try to connect to another ILSP and see what happens

hmm. Now connected to ILSP 'btp3.mlab.company' and same error.

emschwartz commented 6 years ago

Did you run moneyd xrp:configure before running start?

jnieuwenhuijzen commented 6 years ago

Hi Evan,

Yes I did. I have a .moneyd.json which seems to be ok at first sight. The .moneyd.json look as follows:

{ "version": 1, "uplinks": { "xrp": { "relation": "parent", "plugin": "/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-xrp-asym-client/index.js", "assetCode": "XRP", "assetScale": 6, "balance": { "minimum": "-Infinity", "maximum": "20000", "settleThreshold": "5000", "settleTo": "10000" }, "sendRoutes": false, "receiveRoutes": false, "options": { "server": "btp+wss://xxx@btp3.mlab.company", "secret": “xxx", "address": "xxx", "xrpServer": "wss://s1.ripple.com" } } } }

I have tried connecting to the test network which worked.

jnieuwenhuijzen commented 6 years ago

I tested again, but now kept the channel open, removed the old .moneyd.json and reconfigured. My connection now points to 'btp2.mlab.company' and it magically works. Maybe the previous 2 ILSP were not ok?

christophersanborn commented 5 years ago

I also am receiving this same error on testnet. Is there any solution yet?

In .moneyd.test.json the server key and xrpServer key are:

"server": "btp+wss://ETP4vvLENdNNKdaSJyu6haIc6ziiPMtX3IVFUW3Jjc4:2eb7b97cc8f52148aedcfbe0c21e9d816caead905c9ef9c56e4ac865bc576f43@strata-ilsp.com/testnet/xrp",
"xrpServer": "wss://s.altnet.rippletest.net:51233"
omertoast commented 4 years ago

I'm getting the same error, is anyone fixed it?

wa1one commented 4 years ago

same error

Mike-Huggins commented 4 years ago

Same error. Believe it is to do with the test net but no idea how to resolve!

jellicoe commented 4 years ago

same here..."data":"Cannot read property 'Account' of undefined","protocolData":[]}