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

consolidate function uses GET to broadcast and should use POST #37

Open
christroutner opened this issue Dec 25, 2019 · 0 comments
Open

Comments

@christroutner
Copy link

The scope of this Issue concerns the new consolidate function that was created to consolidate the UTXOs in the 145 address. I noticed this error:

Consolidating UTXOs.
cashAddress: "bchtest:qpz5hez3qmzrnjzdfu03tf7fp6ca0rlsaqvrxmfpyd"
error: Error in broadcastBchTx
error: Error in bch.js/consolidateUtxos()
(node:6605) UnhandledPromiseRejectionWarning: <html>
<head><title>414 Request-URI Too Large</title></head>
<body bgcolor="white">
<center><h1>414 Request-URI Too Large</h1></center>
<hr><center>nginx/1.14.0 (Ubuntu)</center>
</body>
</html>

I believe this is caused by using a GET call when calling the broadcast function to broadcast the hex. It should call the equivalent POST call instead to avoid this error.

christroutner added a commit that referenced this issue Jan 24, 2020
…tandard-14.0.0

Update eslint-config-standard to the latest version 🚀
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

1 participant