HISE Logo Forum
    • Categories
    • Register
    • Login

    Server callWithGET occasionally returns empty object and server status 0

    Scheduled Pinned Locked Moved Bug Reports
    6 Posts 3 Posters 250 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Casey KolbC
      Casey Kolb
      last edited by Casey Kolb

      I think I'm doing pretty standard server stuff in my HISE script, but Server.callWithGET seems a tiny bit unreliable when I try to activate user licenses and will sometimes return empty objects with the server status 0.

      I've tried the same call to my Woocommerce server on Postman without any issues, so it's directly related to HISE. Anyone have any thoughts on this? I'm wondering if there's a hidden timeout or something else in my HISE script could be creating a conflict. Thanks!

      Casey Kolb
      Founder & CEO of Lunacy Audio
      Composer | Producer | Software Developer

      orangeO 1 Reply Last reply Reply Quote 1
      • orangeO
        orange @Casey Kolb
        last edited by

        @Casey-Kolb Have you solved this issue? Or what was the cause?

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        LindonL Casey KolbC 2 Replies Last reply Reply Quote 0
        • LindonL
          Lindon @orange
          last edited by

          @orange - I was getting the same thing -- and brute force fixed it by repeating the call N times and got reliability that way..

          HISE Development for hire.
          www.channelrobot.com

          orangeO 1 Reply Last reply Reply Quote 1
          • orangeO
            orange @Lindon
            last edited by

            @Lindon said in Server callWithGET occasionally returns empty object and server status 0:

            @orange - I was getting the same thing -- and brute force fixed it by repeating the call N times and got reliability that way..

            Interesting. Is there a limit for these N times calls ? Or try untill success?

            develop Branch / XCode 13.1
            macOS Monterey / M1 Max

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @orange
              last edited by

              @orange - well if you "try until success" and the server is ACTUALLY down then you never return - so I found 4 or 5 trys was easily enough..

              HISE Development for hire.
              www.channelrobot.com

              1 Reply Last reply Reply Quote 1
              • Casey KolbC
                Casey Kolb @orange
                last edited by

                @orange Yes this was fixed. There was a timeout on the server call which would occasionally just not return anything if it timed out. Christoph fixed this a while back so you might be experiencing something different here.

                Casey Kolb
                Founder & CEO of Lunacy Audio
                Composer | Producer | Software Developer

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post

                24

                Online

                1.7k

                Users

                11.7k

                Topics

                102.0k

                Posts