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

explorer api url not compatible with latest installation of insight-api #28

Open
southbite opened this issue Jan 1, 2016 · 1 comment

Comments

@southbite
Copy link

Hi there,

I installed the insight api on our own node as per your instructions here:
https://github.com/bitpay/insight-api/tree/v0.3.0
The api and insight are both up and running on our nodes, so all good there, but when I try and get address info or unspents like so:
var testExplorer = new Insight(testConfig.testServer1.url, Networks.testnet);
testExplorer.getUnspentUtxos(testConfig.address2.address, function(e, utxos) { ...

I got 404 errors, this is because the url part on the requests is simply /api/[rest of query] - as can be seen here: https://github.com/bitpay/bitcore-explorers/blob/master/lib/insight.js#L64

the path is actually /insight-api/[rest of query] - this is the insight-api default, on fixing this my unit tests all passed.

Is this an issue - or have I set insight-api up incorrectly?

@hudgins
Copy link

hudgins commented Jun 3, 2016

@southbite I ran into the same thing. #31

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