solve
Method 1: set Axios in main.js method 2: if Axios is encapsulated into request
In the process of doing the project, due to the large amount of data requested, the request timed out, so this error was reported. The timeout time of 5000ms was set when Axios was configured. We can solve this error by changing this setting
Method 1: set Axios in main.js
Set the timeout of Axios in main.js, but it is generally not available. You need to set it yourself. Then main.js can be found under SRC of your project, and add Axios. Default. Timeout = 50000 in it, which means that setting the timeout to 50 seconds should be enough
Method 2: if Axios is encapsulated into request
If the first method is not used at all, you can change it in another setting:
here
Read More:
- Error: timeout of 5000ms exceeded error is always reported during post request
- Lock wait timeout exceeded — transaction and index
- ionic Uncaught (in promise): Error: StaticInjectorError[NavController]
- Easywasmlayer reports an error uncaught (in promise) domexception when playing a video
- Uncaught (in promise) TypeError: Object(…) is not a function
- MySQL error 1205 (HY000): lock wait timeout exceeded; try restarting transaction
- Remove video with video byte 0, uncaught (in promise) domexception: failed to load because no supported source was f
- [TCP] TCP connection SYN timeout retransmission times and timeout period
- Error 1: Vue quickly clicks the route to jump. Error: uncaught (in promise) error: request aborted
- [338] MySQL error: error 1205: lock wait timeout exceeded solution
- Vue router click the menu bar and the same module reports an error Vue router.esm.js? 2215:2065 Uncaught (in promise) Error
- JS uses the and or operator, and an error is reported: uncaught rangeerror: maximum call stack size exceeded
- Error in created hook: “referenceerror:” promise “undefined” Vue cli project Google is right, ie reported an error, “promise” undefined“
- Error in v-on handler (Promise/async): “[object Object]“
- Solution of server startup timeout in eclipse
- Error domain = nsurlerrordomain code = – 1001 “request timeout occurred in swift alamofire get request. ” UserInfo={NSUnderlyingErro
- Error in v-on handler (Promise/async): “Error: Request failed with status code 500“
- Error report in idea compilation Error:Android Dex : [Project] java.lang.OutOfMemoryError : GC overhead limit exceeded
- MS SQL Could not obtain information about Windows NT group/user ‘domain\login’, error code 0x5. [SQ…
- Idea stuck and error reported: UI was frozen for xxxxx MS problem solving