If you receive the error code 322, this indicates that a server error occurred while attempting to process the request. The most common reason for this error is a duplicate request ID being received from the client. To avoid this, ensure that each request is assigned a unique ID or that each request is completed before using the same request ID again.
For a list of TWS API error codes, please visit our documentation.