Failed to load resource the server responded with a status of 400

     
Problem:

I'm trying to Gọi a controller method that will save my object, but when i try to url lớn it, it returns http error. I've browsed through some similar problems on SO but no luông chồng. So i wanna ask myself...

Bạn đang xem: Failed to load resource the server responded with a status of 400

Here is my Ajax (for simplicity purposes i renamed the variables):

function addDob() var var1 = $("#var1").val(); var var2 = $("#var1").val(); var var3 = ; var3<"var3"> = $("#var3").val(); var json = JSON.stringify( var1 : var1, var2 : var2, var3 : var3 ); console.log(json); alert(json); $.ajax( url: 'add_dob', type: 'POST', contentType: 'application/json; charset=utf-8', dataType: json, success: function (data) console.log(json); alert(data.message); resetForm(); , error: function () alert("Error!"); );
askedAtruyền thông quảng cáo 26sumaiya simi43.9k points
The answer was the Wrapper class. It couldn't assign values khổng lồ it & threw error because i set attributes to lớn "private". Setting them "public" solved it for me.

Can't believe sầu that was the error...


answeredAquảng bá 26Humaira ahmed50.7k points

Your comment on this answer:

Your name to lớn display (optional):
E-Mail me at this address if a comment is added after mine:Email me if a bình luận is added after mine

Problem: I"m trying to call a controller method that will save my object, but when i try to lớn url to it, it returns http error. I"ve sầu browsed through some similar problems on SO but no luck.

Xem thêm: Otaku Nuts: Naruto Vs Bleach Vs Naruto 3, Bleach Vs Naruto 3


askedMay 3Humaira ahmed50.7k points
*
askedAquảng cáo 1zayed161.8k points
Problem: How can you solve sầu a 502 error?I believe whats causing the 502 error is a nested loop that contains heavy calculations. It would take up khổng lồ 2 minutes for it to finish that blochồng of code on my local server. However on a public hệ thống I just get this 502 Bad Gateway nginx/1.10.3 (Ubuntu).
askedAtruyền thông quảng cáo 26sumaiya simi43.9k points
Problem: Is it possible to lớn make this work : Failed to load resource hệ thống responded with a status of 404?
Problem: Working on this but no luck, need help : Failed to load resource the VPS responded with a status of 404 (not found).
Problem: Where should I seek assistance with this problem: Failed lớn load resource: the hệ thống responded with a status of 404 (not found)?
Problem: I am getting these errors in the console after my React phầm mềm has been built and deployed on Heroku. Refused to apply style from "https://radiant-tor-66940.herokutiện ích.com/index.css" because its MIME type ("text/html") is not a supported stylesheet MIME type, & ... the index.html document in the browser, I can see at the bottom where the script tags call the chunk.js files in /static/js:
Problem: What are my options for resolving this problem “Failed khổng lồ load resource: the hệ thống responded with a status of 405 (method not allowed)”?
Problem : why this is still happining : Failed lớn load resource: the server responded with a status of 500 (internal VPS error).
tinh dầu vape
pod 1 lần