catalog
1、 Source of the problem
2、 Solutions
3、 Solutions
4、 Summary
1、 Source of the problem
Usually using nuxt and deploying it online are normal, and occasionally 500 errors are reported one day;
Nuxt.js The operation ( NPM run dev u>) reported the following error:
The server error log is as follows:
0|qiu | ERROR Request failed with status code 500 20:17:14
0|qiu | at createError (node_modules/axios/lib/core/createError.js:16:15)
0|qiu | at settle (node_modules/axios/lib/core/settle.js:18:12)
0|qiu | at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:201:11)
0|qiu | at IncomingMessage.emit (events.js:187:15)
0|qiu | at IncomingMessage.EventEmitter.emit (domain.js:441:20)
0|qiu | at endReadableNT (_stream_readable.js:1094:12)
0|qiu | at process._tickCallback (internal/process/next_tick.js:63:19)
2、 Solutions
500 status code: server internal error, unable to complete the request.
Generally speaking, this problem occurs when the server code fails
So the problem lies in the back end, check the interface
3、 Solutions
Annotate the code one by one, and find an interface error in the page, so that the problem can be solved after the back-end correction;
The error of the request interface is as follows (PHP in the background)
It’s a clumsy way to comment the code one by one. If you can, you can directly look at the network of the console to see the interface in error;
4、 Summary
because Nuxt.js It is a framework for server-side rendering. As long as an interface in the page reports an error and the server returns an error, the front-end display page will crash;
And an interface error, nuxt only returns 500 errors, can’t directly locate the problem, need to check one by one, hope nuxt is more and more powerful
The wechat app I developed (online):
if you are interested, you can have a look at it and pay close attention to it with one click. Thank you ~
1. Xiaolv depression Test Assistant (wechat APP): a completely free and ad free depression self-test app, which collects questionnaires from global authorities and provides them to you for free. There are novel score records and posters to share, You can see and learn!
Read More:
- Error: request failed with status code 500
- Vue failed to log in. F12 reported an error: request failed with status code 404
- Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x3 My solution
- Error in v-on handler (Promise/async): “Error: Request failed with status code 500“
- jsp: Failed to load resource: the server responded with a status of 400 (Bad Request)
- Error code 1 error resolution (NPX create react app my app execution reports an error)
- The request failed with HTTP status 401: Unauthorized. SSRS 2008
- ajax error 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- Error domain = nsurlerrordomain code = – 1001 “request timeout occurred in swift alamofire get request. ” UserInfo={NSUnderlyingErro
- React Native Network Request Failed solution
- Spring MVC error HTTP status 400 – bad request
- Router DIO network request: dioerror[ DioErrorType.RESPONSE ]: HTTP status error [400] or [500]
- WebView loadrequest request request error “nsurlconnection finished with error – Code – 1022”
- In the HTML page request Ajax times 400 error, solve Yii submit post form 400 error, and Ajax post request 400 problem (example code)
- Flask Request an extension before_request after_request errorhandler
- Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map
- About creo 4.0 license request failed for feature solution
- Jenkins git configuration error status code 128 ‘text file busy’
- Error: Command ‘/ usr / bin / clang’ failed with exit status 1 solution for Mac OS installation
- Spring MVC 406 status code / could not find acceptable representation