avatar image
1
500 error happening more often
By Created , last editted

Hi guys,

I have a strange problem. For 2 years my customers are working with a BB application. I have forms which I post with ajax calls (see below). 

The ajax call points to a post action. If this is finished, I should get a success message back and then the success function is executed.

This has worked for a long time now. In the last half year I keep getting messages from my customers that the spinners keeps spinning. Analysis shows that I suddenly receive a 500 error back from BettyBlocks. Rebuilding the post endpoint sometimes helps, but that can be a hassle. 

If I look in the log, the action is submitted en has no errors. So what the reason is for the 500 error is a big question mark.

Does anyone recognize this issue? I have asked BB support 8 weeks ago, but there is no news from that source.

Every help is appreciated.

Corné

<script>
        $('#contactaanmaken').submit(function() { // catch the form's submit event
            $("#contactaanmaken").replaceWith("<img src='{% file_asset_url 'spin.gif' %}' height='35' width='35' id='spinner'/>")
            $.ajax({ // create an AJAX call...
              data: $(this).serialize(), // get the form data
              type: $(this).attr('method'), // GET or POST
              url: $(this).attr('action'), // the file to call
              success: function() { // on success..
                $('#editzorgaanbieder{{objzorgaanbieder.id}}').load('/crmversie2/lijsten/contactpersonen?zorgaanbiederid={{objzorgaanbieder.id}}');
                $("#formdivnewcontact").toggle();
               
              }
            });
            return false; // cancel original event to prevent form submitting
          });
    </script>


Hi guys,

I have a strange problem. For 2 years my customers are working with a BB application. I have forms which I post with ajax calls (see below). 

The ajax call points to a post action. If this is finished, I should get a success message back and then the success function is executed.

This has worked for a long time now. In the last half year I keep getting messages from my customers that the spinners keeps spinning. Analysis shows that I suddenly receive a 500 error back from BettyBlocks. Rebuilding the post endpoint sometimes helps, but that can be a hassle. 

If I look in the log, the action is submitted en has no errors. So what the reason is for the 500 error is a big question mark.

Does anyone recognize this issue? I have asked BB support 8 weeks ago, but there is no news from that source.

Every help is appreciated.

Corné

<script>
        $('#contactaanmaken').submit(function() { // catch the form's submit event
            $("#contactaanmaken").replaceWith("<img src='{% file_asset_url 'spin.gif' %}' height='35' width='35' id='spinner'/>")
            $.ajax({ // create an AJAX call...
              data: $(this).serialize(), // get the form data
              type: $(this).attr('method'), // GET or POST
              url: $(this).attr('action'), // the file to call
              success: function() { // on success..
                $('#editzorgaanbieder{{objzorgaanbieder.id}}').load('/crmversie2/lijsten/contactpersonen?zorgaanbiederid={{objzorgaanbieder.id}}');
                $("#formdivnewcontact").toggle();
               
              }
            });
            return false; // cancel original event to prevent form submitting
          });
    </script>

Answers
Sort by:

Please login to reply to the topic.