thebotguys/golang-bittrex-api

Failure of GetMarketSummary call from time to time (not always happen)

saniales opened this issue · 2 comments

this is difficult to reproduce, check TestGetMarketSummary
output of error

--- FAIL: TestGetMarketSummary (12.62s)
	/home/alessandro/go/src/github.com/saniales/golang-bittrex-api/bittrex/public_test.go:70: Error expected, but function did not fail
--- FAIL: TestGetMarketSummary (6.07s)
	/home/alessandro/go/src/github.com/saniales/golang-bittrex-api/bittrex/public_test.go:71: Error expected, but function did not fail (GetMarketSummary("INVALID-MARKET-HAHA"))
		 Value Returned : &{BTC-ETH 0.07334573 0.06953258 0.07192395 0.07168003 0.07192395 116038.72820972 8286.56839951 2017-08-19T17:13:02.85 2934 9653 0.0703 2015-08-14T09:02:24.817}
FAIL
--- FAIL: TestGetMarketSummary (2.32s)
	/home/alessandro/go/src/github.com/saniales/golang-bittrex-api/bittrex/public_test.go:75: Error expected, but function did not fail (GetMarketSummary(""))
		 Value Returned : &{BTC-ETH 0.07334573 0.06953258 0.07190519 0.07190519 0.07201065 115953.37746639 8280.76441515 2017-08-19T17:14:28.083 2933 9651 0.07025 2015-08-14T09:02:24.817}
FAIL

After an analysis to the bittrex response headers (with @mastrolinux) we came to the conclusion that this is a DDoS protection provided by cloudflare, docs will be properly updated and this issue closed