Ameobea / cryptoviz

A web-based Depth-Of-Market visualization for data of the Poloniex cryptocurrency exchange.
https://cryptoviz.net/
MIT License
73 stars 26 forks source link

Build fails with some files not found #7

Open parthi2929 opened 6 years ago

parthi2929 commented 6 years ago

Hi

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

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

parthi2929 commented 6 years ago

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?

Ameobea commented 6 years ago

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.

parthi2929 commented 6 years ago

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 commented 6 years ago

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

parthi2929 commented 6 years ago

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

parthi2929 commented 6 years ago

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

Ameobea commented 6 years ago

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.

parthi2929 commented 6 years ago

Here are the errors:

2017-12-26_08h56_48

Ameobea commented 6 years ago

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.

parthi2929 commented 6 years ago

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

Ameobea commented 6 years ago

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.