no response from server on UWP app

Discussion in 'Programming' started by RizbIT, Aug 9, 2018.

Tags:
  1. RizbIT

    RizbIT Member

    Joined:
    Jun 24, 2016
    Posts:
    442
    Trying to port an app from Android to UWP.

    On Android it works fine but on the UWP compiled which opens up on my pc desktop upon completion of compile, when i use http_post_string to get the user to login the app just hangs
    I get either no response from the server of maybe no requests are sent from the app?

    Anyone know why.

    The UWP project seems to compile ok and the rest of the game seems to work just issue with the http connectivitiy.
     
    Last edited: Aug 9, 2018
  2. RizbIT

    RizbIT Member

    Joined:
    Jun 24, 2016
    Posts:
    442
    also url_open does not open anything on UWP compiled on gms 1.4x
     
  3. Pfap

    Pfap Member

    Joined:
    Apr 30, 2017
    Posts:
    551
    I remember I had something working on pc once, but it wouldn't run on ios. I eventually discovered that it had to do with how the platform dealt with an "empty" response from the server. On pc an empty response returned -1, but on ios it was silent. My code was set up that if the response failed Gamemaker was to try again, but ios responses never failed by what I defined as failing. I solved the issue by running my app in xcode and checking the output. I'm not sure how UWP works though.
     
  4. RizbIT

    RizbIT Member

    Joined:
    Jun 24, 2016
    Posts:
    442
    i get what you are saying

    i added a show_message() to the http async event to capture and show any response the problem is no response is received in that event at all
     
  5. Pfap

    Pfap Member

    Joined:
    Apr 30, 2017
    Posts:
    551
    Maybe try making a new room with a button that when pressed sends an http request to your server. Also check your servers error log, maybe your server is not receiving the request?

    Here is the async code I'm using:

    Code:
    
    
    if ds_map_find_value(async_load, "id") == server_get{
    
    show_debug_message("server_get");
    
    show_debug_message(async_load[? "status"]);
    
    var status = ds_map_find_value(async_load, "status");
    
    if status == 0
    {
    path = ds_map_find_value(async_load, "result");
    }
    else{
     //poll if it failed
     alarm[0] = 30;
    
    }
    
    
     
  6. RizbIT

    RizbIT Member

    Joined:
    Jun 24, 2016
    Posts:
    442
    it has to be a bug i think as even if the server isnt getting a response what can i do about that? the android and windows desktop version commuincate with the same server fine just not the uwp one...
     
  7. The-any-Key

    The-any-Key Member

    Joined:
    Feb 2, 2017
    Posts:
    1,522
    I filed a bug report 8 months ago and this was fixed: https://bugs.yoyogames.com/view.php?id=28606
    But we need to wait for the final update for 1.4 to get this fix.
     
  8. RizbIT

    RizbIT Member

    Joined:
    Jun 24, 2016
    Posts:
    442
    Seriously 8 months ago?

    Then admin of gms arent taking that very seriously.

    How can not being to do any online communication on a UWP app be a trivual issue? This is prob an emergency fix issue.
    I really hope they fix this soon

    So over these months have other developers not published GM made UWP apps? as id say ALL games on any platform need to communicate with servers / php files etc..
     

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