Kaynağa Gözat

add timeout error message

vbea 2 yıl önce
ebeveyn
işleme
187945b17f
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      Strides-APP/app/api/http.js

+ 1 - 0
Strides-APP/app/api/http.js

@@ -11,6 +11,7 @@ export const host = hostUrl;
 const DEBUG = app.debug && !app.product;
 
 Axios.defaults.timeout = 30000;
+Axios.defaults.timeoutErrorMessage = "Connection timeout, please check your network.";
 Axios.interceptors.response.use((response) => {
   if (DEBUG) {
     console.log('-------', response.config.method, response.config.url);