1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

HTML5 http_request not working anymore on HTML5 Target GMS2

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Diegovz01, Nov 5, 2019.

  1. Diegovz01

    Diegovz01 Member

    Jun 9, 2018

    I'm trying to make a post request to a json api with the following code in GameMaker 2 html5 target.

    Create event of object:


    Asyc http event:


    Unfortunately I got the following error:


    This only happens with HTML5 target export, when on Windows it works just fine.

    Also the weird thing here is that using GameMaker 1.14 both HTML5 and Windows targets it works fine.

    Seems like it's a bug.

    I'm short in time to elaborate more right now so I will let 2 example project files (gms1 and gms2) in this post so you can give them a review, will also try to make a bug report later.

    Example files (Google Drive): https://drive.google.com/drive/folders/1prJu0ePxoTb4mFtvbJXzqmcTiLPLWiDW?usp=sharing

  2. chmod777

    chmod777 Member

    Aug 26, 2016

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice