in projects where the front and back ends are separated
the front end USES a post request to send data to the back end, but an error occurs:
Error: Request failed with status code 500 Error
we need to know that 500 represents (server internal error) the server encountered an error and was unable to complete the request. p>
take a look at my original part of the code:
front-end request:
back-end receiving entity and control layer code:
p>
if you look closely, you will see that the parameter names that my front end took when I sent the request were userName and password
but the back end used username and password to receive the parameters from the front end, so I changed the front end username — > username
p>
p>
finally OK! If you have the same problem, check to see if the parameters you sent are the same as the parameters you received, otherwise the parameters will be empty
Read More:
- NuxtSe rverError:Request failed With status code 500 my solution and thinking
- Vue failed to log in. F12 reported an error: request failed with status code 404
- Error in v-on handler (Promise/async): “Error: Request failed with status code 500“
- ajax error 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- jsp: Failed to load resource: the server responded with a status of 400 (Bad Request)
- The request failed with HTTP status 401: Unauthorized. SSRS 2008
- Error domain = nsurlerrordomain code = – 1001 “request timeout occurred in swift alamofire get request. ” UserInfo={NSUnderlyingErro
- Spring MVC error HTTP status 400 – bad request
- Router DIO network request: dioerror[ DioErrorType.RESPONSE ]: HTTP status error [400] or [500]
- In the HTML page request Ajax times 400 error, solve Yii submit post form 400 error, and Ajax post request 400 problem (example code)
- WebView loadrequest request request error “nsurlconnection finished with error – Code – 1022”
- Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map
- Jenkins git configuration error status code 128 ‘text file busy’
- Flask Request an extension before_request after_request errorhandler
- Spring MVC 406 status code / could not find acceptable representation
- Solve the problem that the delete request is not available under SpringBoot. There was an unexpected error (type=Method Not Allowed, status=405).
- IIS “Bad Request – Request Too Long. HTTP Error 400. The size of the request headers is too long.”
- Asynchronous Future Parallel processing request code example
- Nginx modifies the front end request size limit (413 request entity too large)
- [nodejs] error request aborted after request routing in post mode