Server callWithGET occasionally returns empty object and server status 0
-
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 status0
.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 Have you solved this issue? Or what was the cause?
-
@orange - I was getting the same thing -- and brute force fixed it by repeating the call N times and got reliability that way..
-
@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?
-
@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..
-
@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.