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:
- The back end cannot receive the parameters passed by the front end
- Attributeerror: object has no attribute
- Required request body is missing with ContentCachingRequestWrapper
- Proxy error:could not proxy request
- ajax error 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- Solved: No’Access-Control-Allow-Origin’ cross-domain issue
- SFTP login error: fatal error: received unexpected end of file from SFTP server
- Three ways to get form data in struct2
- Spring MVC error HTTP status 400 – bad request
- In C + + cin.getline The difference between () and getline () functions
- [comment: httpmessagenotreadableexception: JSON parse error: invalid UTF-8 start byte 0xa0]
- Error: required request body is missing, @ requestbody annotation usage
- “Failed to find entry for user…” appears when Linux uses samba
- Wechat payment API V3 payment notice asynchronous signature verification failed
- Error in v-on handler (Promise/async): “Error: Request failed with status code 500“
- 12-web security — error injection based on SQL Server — and, convert, cast
- Mount error (22): invalid argument refer to the mount.cifs (8) manual page (
- Error:kCFStreamErrorCodeKey=-2102 Domain=kCFErrorDomainCFNetwork Code=-1001 – iOS
- JSON parse error: invalid UTF-8 solution series
- git clone Error “Clone failed: Authentication failed for xxxxx”