askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.08k stars 3.93k forks source link

Cloudflare Outage causes Gekko Crash #2815

Closed austinlangdon closed 5 years ago

austinlangdon commented 5 years ago

Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.

I'm submitting a ... [x] bug report [ ] question about the decisions made in the repository

As a result of the Cloudflare outage on Wednesday, it looks like it caused a running live trade gekko to crash.

Any quick and dirty way we can avoid this so it resumes after service is restored?

Here was the UI log:

This is an archived Gekko, it is currently not running anymore. This is Gekko crashed with the following error: { "response": { "statusCode": 502, "body": "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>cloudflare</center>\r\n</body>\r\n</html>\r\n", "headers": { "server": "cloudflare", "date": "Tue, 02 Jul 2019 13:48:44 GMT", "content-type": "text/html", "content-length": "171", "connection": "close", "cf-ray": "4f01143c9e53d0f4-SJC" }, "request": { "uri": { "protocol": "https:", "slashes": true, "auth": null, "host": "api.gdax.com", "port": 443, "hostname": "api.gdax.com", "hash": null, "search": null, "query": null, "pathname": "/products/BTC-USD/ticker", "path": "/products/BTC-USD/ticker", "href": "https://api.gdax.com/products/BTC-USD/ticker" }, "method": "GET", "headers": { "User-Agent": "gdax-node-client", "Accept": "application/json", "Content-Type": "application/json" } } }, "data": null }

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you feel this is very a important issue please reach out the maintainer of this project directly via e-mail: gekko at mvr dot me.