move timeoutError to common.js