moneyd icon indicating copy to clipboard operation
moneyd copied to clipboard

Cannot read property 'Account' of undefined

Open KoenWellekens opened this issue 6 years ago • 9 comments

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)

KoenWellekens avatar Jun 17 '18 10:06 KoenWellekens

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.

jnieuwenhuijzen avatar Sep 23 '18 10:09 jnieuwenhuijzen

Did you run moneyd xrp:configure before running start?

emschwartz avatar Sep 23 '18 13:09 emschwartz

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://[email protected]", "secret": “xxx", "address": "xxx", "xrpServer": "wss://s1.ripple.com" } } } }

I have tried connecting to the test network which worked.

jnieuwenhuijzen avatar Sep 23 '18 16:09 jnieuwenhuijzen

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?

jnieuwenhuijzen avatar Sep 23 '18 21:09 jnieuwenhuijzen

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"

christophersanborn avatar Mar 26 '19 17:03 christophersanborn

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

omertoast avatar Mar 05 '20 11:03 omertoast

same error

wa1one avatar May 06 '20 21:05 wa1one

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

Mike-Huggins avatar May 12 '20 06:05 Mike-Huggins

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

jellicoe avatar Jun 10 '20 11:06 jellicoe