Forum Discussion
There are no such restrictions, you can make any number of ajax call.
On that custom page, you are using a custom component having JS so in JS you can make any no of ajax call it does not depend on that custom page. LMK what you are trying to do so can help you out more.
i have a code where in i am processing bulk ideas , atleast 1000 minimum with updating some comments and changing status of them.
On a certain instance i am getting Error 429
https://httpstatuses.com/429
so i am unable to understand what is the cause of this error.
Is it because of too many calls ? . On some other instance i am not facing such issues.
- VikasB8 years agoBoss
I would also suggest you try it with few calls instead of too many calls. It would be great if you can share the code snippets.
As you mentioned that on some other instance, i am not facing such issues. It means the issue is not with multiple calls. You should reach out to support for instance-specific issues.
- Shivshankar8 years agoAce
request_str is string with 1000 ideas comma seperated.
var idArray=request_str.split(',');
var url1=endpointi?request_str="someId"&statusid="StatusId"&post_comment="postComment";
var saveData = $.ajax({
type: 'POST',
dataType: "json",
async:"false",
url: url1,
error: function (jqXHR, exception) {
//some code
},
success: function(resultData) {//somecode
}
});This code is giving error 429
- VikasB8 years agoBoss
It works fine on other instances means might be (if you are creating the id's array manually) in this certain instance, some of the ideas do not exist with the given id in your array. So can you give it a shot with few ids(like 5 ids)which exist in this instance? So both the things(too many calls and valid ids) can be tested in a single shot. Share the endpoint call you are using if it does not work for you.