Networking & DNS
Bug Report
Binance API -1021: Timestamp for this request is outside of the recvWindow
Our trading bot's signed requests started failing with error -1021 a few times an hour, then constantly. The VM's clock had drifted almost two seconds because time sync was not running. Fixing NTP, measuring the offset against server time and handling -1021 explicitly ended it.