import axios from 'axios';

const http = axios.create({
  baseURL: 'http://localhost:5000',
  timeout: 1000,
});

export default http;

import axios from 'axios';

const http = axios.create({
  baseURL: 'http://localhost:5000',
  timeout: 15000,
});

export default http;

Increase axios' timeout to 15 seconds
Increase axios' timeout to 15 seconds
