Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin.sendData is not a function #7

Open
msrobot0 opened this issue Jul 15, 2018 · 5 comments
Open

plugin.sendData is not a function #7

msrobot0 opened this issue Jul 15, 2018 · 5 comments

Comments

@msrobot0
Copy link

Hi,
I'm running moneyd on the testnet and when I run ilp-curl -X POST https://unhash.ilp-test.com --data @example.txt - I get plugin.sendData is not a function. This looks like perhaps a node version or node package version issue... Any suggestions before I start trial and error package debugging?

@sharafian
Copy link
Collaborator

Could you run DEBUG=* ilp-curl -X POST https://unhash.ilp-test.com --data @example.txt and send me the output? I wonder if it's somehow loading a class other than the default plugin; you don't have ILP_PLUGIN set in your environment, do you?

@msrobot0
Copy link
Author

msrobot0 commented Jul 15, 2018 via email

@sharafian
Copy link
Collaborator

Looks like the problem is definitely that ilp-plugin-xrp-escrow is being pulled in, which is a deprecated plugin. I checked the dependencies of ilp-curl, and I can't see any where it would use ilp-plugin-xrp-escrow by default. In the package lock of ilp-curl, it also doesn't import ilp-plugin-xrp-escrow, so it must have been installed explicitly or through a linked package.

  • If you run npm ls ilp-plugin-xrp-escrow what does it say? (or npm ls -g ilp-plugin-xrp-escrow if you installed ilp-curl globally)
  • Do you have any linked packages in your install of ilp-curl?
  • What happens when you run echo $ILP_PLUGIN?

@msrobot0
Copy link
Author

msrobot0 commented Jul 15, 2018 via email

@sharafian
Copy link
Collaborator

unsetting $ILP_PLUGIN or setting it to ilp-plugin-btp should solve your issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants