We are seeing softlayer APIs throwing certain exceptions 'intermittently'. I want to know what could cause these exceptions, and how to handle these situations. Retrying the operation is one possibility. Any other suggestions are welcome.
The APIs and exceptions are listed below -
account.getNetworkStorage() - throws: SoftLayer.exceptions.TransportError: TransportError(0): HTTPSConnectionPool(host='api.softlayer.com', port=443): Read timed out.
OR
SoftLayer.exceptions.TransportError: TransportError(0): ("Connection broken: error(104, 'Connection reset by peer')", error(104, 'Connection reset by peer'))
Why would server close its end of the connection?
storage.getReplicationStatus(id=storageid) - throws: SoftLayer.exceptions.NotWellFormed: NotWellFormed(-32700): parse error. not well formed
I call this API in a loop, and it successfully returned before failing. So why would server randomly send a malformed response? Or could the transport layer messed it up?
Thanks,
~ Urjit