Fault tolerant API proxy with network diagnosis