Skip to content
Advertisement

Uncaught RangeError: Maximum call stack size exceeded in jquery ajax call

I have an issue with a jQuery ajax call. If I comment out the ajax call, it is works. It is passing all the validations and going to else which have ajax call. if i put some alert by commenting ajax call, it is working fine and showing the alert.

error in console : Uncaught RangeError: Maximum call stack size exceeded.

JavaScript

Advertisement

Answer

The error you get is one that $.ajax will generate if you try to pass a structure that has circular references in it.

If the data definition type is incorrect, the data cannot be successfully sent to the background. The background does not receive the data, the front end will always sent, and this loop causes the stack to overflow.

So all you have to do is keep in check that the parameters you are sending in ajax are right.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement