- Change the default clientId to 99. clientId=1 may be occupied when TWS and IB gateway are opened and closed for many times so that IBridgePy will not receive any responses from IB. When cliendId is occupied, IBridgePy will hang in initialization stage. “request_data failed after 30 seconds” and “Tried many times, but failed.” are typical warning messages that users will see in IBridgePy.