wisespace-io / binance-rs

Rust Library for the Binance API
Other
665 stars 297 forks source link

Bad Request errors. #13

Closed monomadic closed 6 years ago

monomadic commented 6 years ago

Today, binance started returning Bad Request errors using this library. Other libraries seem to work as do curl requests, so I assume it's something about the signature generation.

Every request will return an error.

Error: Bad Request: Response { url: "https://www.binance.com/api/v3/account?recvWindow=5000&timestamp=XXX&signature=XXX", status: BadRequest, headers: {"Content-Type": "application/json", "Transfer-Encoding": "chunked", "Connection": "keep-alive", "Date": "Mon, 18 Jun 2018 06:15:38 GMT", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubdomains", "X-Frame-Options": "SAMEORIGIN", "X-Xss-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "Content-Security-Policy": "default-src 'self'", "X-Content-Security-Policy": "default-src 'self'", "X-WebKit-CSP": "default-src 'self'", "Cache-Control": "no-cache, no-store, must-revalidate", "Pragma": "no-cache", "Expires": "0", "X-Cache": "Error from cloudfront", "Via": "1.1 38afecd326e6fb8546e520d8470bb9f6.cloudfront.net (CloudFront)", "X-Amz-Cf-Id": "XXX=="} }
monomadic commented 6 years ago

That's weird. By itself, it came back up. Must have been some issue on binances end - might be worth noting that other libraries the interacted with binance did work for me... strange.