Every time I try to send a post request, I get 500 error.Post request via postman works fine too, so there is no problems on the server side. What is the Mistake?
Tim Holloway wrote:A "500" error is a server-side error. You should have a stack trace and we need to see it before we can offer much in the way of help.
If you use Ajax to submit something to the server, and it comes back with a 500 status code, then that means that an error occurred on the server. So if that's what happened to you, then you have to look on the server to find out what the error was. Or if it's not your server, then you need to contact the people who manage the server and ask them to work with you to find the problem.
Don't get me started about those stupid light bulbs.