I have just received the following update from IB regarding this issue:
"Please be aware that "Client ID is already in use" error will be brought back in the upcoming releases."
I have asked that other error messages that were dropped in recent versions of the API be brought back:
438 | The application is now locked
10141 | Paper trading disclaimer must first be accepted for API connection.
1300 | Socket port has been reset and this connection is being dropped. Please reconnect on the new port -7498
I have also asked that a new error is added for the scenario of 32 client applications already connected to TWS and no more connections being allowed.
In recent versions of the API, all these errors return the default 502 error which is not informative.
--