【VUE】Error: timeout of 30000ms exceeded

created at 07-10-2021 views: 113


When using VUE to request a large amount of data, the browser is easy to request a timeout, 

press F12 to check the error

Uncaught (in promise) Error: timeout of 30000ms exceeded 


Find the file httpRequest.js, my path is as follow:


in the file httpRequest.js you can find code block like bellow:

const http = axios.create({
    timeout: 1000 * 30,
    withCredntials: true,
    heades: {
        ontent-Type' : 'application/json; charset=utf-8'

change 30 to 120 or any other number larger than 30.

Run again, it will work again.

created at:07-10-2021
edited at: 07-10-2021: