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

Error in /insight-api/addrs/txs #421

Closed
zekylaf opened this issue Nov 3, 2015 · 7 comments
Closed

Error in /insight-api/addrs/txs #421

zekylaf opened this issue Nov 3, 2015 · 7 comments

Comments

@zekylaf
Copy link

zekylaf commented Nov 3, 2015

Hi, when I use:

:/insight-api/addrs/txs"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "addrs=1DkxXKEDJAjYVLS1WMoyEuS5svJGhMAJ78,1DkxXKEDJAjYVLS1WMoyEuS5svJGhMAJ78"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $remote_server_output = curl_exec ($ch); curl_close ($ch); print_r($remote_server_output); ?>

I get this message:

TypeError: Cannot read property 'split' of undefined
at AddressController.checkAddrs (/root/mynode/node_modules/insight-api/lib/addresses.js:89:33)
at Layer.handle as handle_request
at next (/root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/route.js:131:13)
at /root/mynode/node_modules/insight-api/lib/index.js:63:5
at Layer.handle as handle_request
at next (/root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/route.js:112:3)
at Layer.handle as handle_request
at /root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/index.js:330:12)

Can anybody help please?

@braydonf
Copy link
Contributor

braydonf commented Nov 3, 2015

Duplicate? #419

@zekylaf
Copy link
Author

zekylaf commented Nov 3, 2015

I had not noticed it was the same error. Now I delete the # 419

Do you know what is happening with this error?

@braydonf
Copy link
Contributor

braydonf commented Nov 4, 2015

Looks like there was a bug with parsing x-www-form-urlencoded data and is fixed with: #422

@zekylaf
Copy link
Author

zekylaf commented Nov 4, 2015

Hi, I use these comands:

"cd mynode"
"bitcore-node uninstall insight-api"
"cd .."
"npm uninstall -g bitcore-node"

then...

"npm install -g bitcore-node@latest"
"cd mynode"
"bitcore-node install insight-api"

And when I do this in php:

I get the same message:

TypeError: Cannot read property 'split' of undefined
at AddressController.checkAddrs (/root/mynode/node_modules/insight-api/lib/addresses.js:89:33)
at Layer.handle as handle_request
at next (/root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/route.js:131:13)
at /root/mynode/node_modules/insight-api/lib/index.js:63:5
at Layer.handle as handle_request
at next (/root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/route.js:112:3)
at Layer.handle as handle_request
at /root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/root/mynode/node_modules/bitcore-node/node_modules/express/lib/router/index.js:330:12)

Am i doing something wrong?

@braydonf
Copy link
Contributor

braydonf commented Nov 4, 2015

The patch to fix it has not yet been merged.

@zekylaf
Copy link
Author

zekylaf commented Nov 4, 2015

Ok, thanks 👍

@matiu matiu closed this as completed in #422 Jan 7, 2016
@saroar
Copy link

saroar commented Feb 4, 2018

i dont get where is solution please give me more information thanks

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

3 participants