cryptoviz icon indicating copy to clipboard operation
cryptoviz copied to clipboard

Build fails with some files not found

Open parthi2929 opened this issue 6 years ago • 11 comments

Hi

Please find the error which aborts the build. Please help.

http://i.cubeupload.com/rVbLyM.png

parthi2929 avatar Dec 24 '17 17:12 parthi2929

It was not clear in your instructions C:\GKT was needed. Once that is done, build was through. however could not start the app. Below instructions fail.

node start (error=> start not recognized) node src/index.js (error => import not recognized)

How do we start the app?

parthi2929 avatar Dec 24 '17 17:12 parthi2929

Hey. Sorry you're having issues building this; the documentation isn't very good and I'll update it.

The first error was caused because your system is missing the Cairo library which is used by the canvas package.

Once you've installed Cairo and run npm install to install the dependencies, you can then run npm start to start the application which will launch it on http://localhost:8000

If you want, I've got a version of the site running at https://cryptoviz.net/ that you can use if you just want to check it out.

Please let me know if you have any more issues, and I'll work on updating the documentation so it's more clear.

Ameobea avatar Dec 24 '17 21:12 Ameobea

Here is the screen I am getting and always stays loading forever when I click https://cryptoviz.net/

http://i.cubeupload.com/s37SFf.png

parthi2929 avatar Dec 25 '17 03:12 parthi2929

I already have Cairo in C:/GKT else build would have failed right?

parthi2929 avatar Dec 25 '17 03:12 parthi2929

I tried in ubuntu also. Now npm start works, but localhost:8000 is still showing nothing, just black blank screen.

parthi2929 avatar Dec 25 '17 03:12 parthi2929

This is what I get in ubuntu (Virtual box) 2017-12-25_09h28_02

parthi2929 avatar Dec 25 '17 03:12 parthi2929

Hmm. Open the JavaScript console on the web browser on the localhost version as well as the cryptoviz.net version and see if anything shows up. If nothing showing up on the cryptoviz.net one, then there's probably some kind of issue with network connectivity.

Ameobea avatar Dec 25 '17 05:12 Ameobea

Here are the errors:

2017-12-26_08h56_48

parthi2929 avatar Dec 26 '17 03:12 parthi2929

Ahh, it seems that Poloniex has some kind of anti-bot protection or similar that it's using to prevent you from accessing its API endpoints, which are necessary to use CryptoViz.

Please try visiting https://poloniex.com/public?command=returnCurrencies manually in your web browser. It may ask you to fill in a capcha to verify you're a human, which you should do. I think this is the same issue as this one: https://github.com/dutu/poloniex-api-node/issues/20

Please let me know if this fixes the problem. If so, I'll have to put in a check into the codebase to see if this happens for others and direct them to perform this process themselves.

Ameobea avatar Dec 26 '17 17:12 Ameobea

I did that manually, values returned in browser, but via script again, same issue

parthi2929 avatar Dec 27 '17 06:12 parthi2929

Reading through the thread more closely, it looks like you won't be able to access the page automatically if your IP is flagged by Cloudflare: https://github.com/dutu/poloniex-api-node/issues/20#issuecomment-322187159. This can happen if you're using a public IP or one that's behind a proxy that's hosted on a cloud service provider, for example.

I'll work on creating a proxy for these API requests on my own server if they fail, and adding that to the site.

Ameobea avatar Dec 27 '17 06:12 Ameobea