Ajax bug in r416

0 favourites
  • 3 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Ok, so I went to GitHub to post this bug and it's whole 2fa bullshit has gone over the top. You'll pardon me if I don't spend 2 hours of what little free time I have getting THAT shit to work.

    This worked fine in 407.2 earlier today on the desktop app. My desktop app upgraded to 416 and now this falls over to the Ajax any error with an error code of 0. Before my phone app upgraded, I loaded the last autosave and it worked fine. As soon as it upgraded to 416, Ajax error. I open the last autosave in the browser 407.2 and it works as intended.

    And it's not just this Ajax call. Any event sheet that I have with an Ajax call in the system on load fails with an error code of 0 if I try to run with it as the main event sheet.

    Did I miss something about Ajax in the patch notes??????

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The only change was the addition of the 'On upload progress' trigger, which should not have affected any existing projects at all. I'm afraid it's impossible to say any more without the details provided by a bug report, as we need that information to be able to investigate.

  • The only change was the addition of the 'On upload progress' trigger, which should not have affected any existing projects at all. I'm afraid it's impossible to say any more without the details provided by a bug report, as we need that information to be able to investigate.

    Again, having issues getting signed in to Github. Here's what I can tell you:

    Here are 2 c3p. Both are identical. One in 416, one is 407

    drive.google.com/file/d/1u9h63j1Pbh53iUt1n4Sn11flneqzOHpN/view

    drive.google.com/file/d/1dp-nLFxixwaLh-Rxne4u2vb_ajZVJGZu/view

    Both look like this:

    I added this line to my PHP class right at the top of the __construct function for my class that handles communication. This logs the output of the ajax post to the debug log.

    error_log(print_r($_POST,true));

    When I run this c3p in 407, I get this correct response in my debug log:

    [20-Nov-2024 23:41:00 UTC] Array ( [command] => connection_check [PV] => 1.0.0.0 [N] => Ajax 407 [SH] => Layout 1 )

    When I run the same code in 416, I get this in the debug log:

    [20-Nov-2024 23:40:59 UTC] Array ( )

    This indicates to me that for whatever reason, the 416 version is not passing the post data to my php file. In 416, this ends up generating a CORS error as there's no post data to process so it sends back nothing, which is expected. In 407, this runs fine with the c3p reporting success and no console errors.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)