Page 1 of 2

Http request doesn't timeout

Posted: 21 Jan 2016 07:31
by dib0
Hi!

Since a week or three I'm on a Android 5.1 device. Now I seem to have a problem (don't know when it started, just saw it this week) with the timeout on http request.

I'm using a http request to determine if my computer at home is on or not. If the request throws a time out: it's off. When the http server responds it works perfectly. But is it doesn't: the action doen't time out, but hangs (the flow is still executing after an hour and the http request action is "red"/shows active).

This has worked perfectly before. Is this a bug on Android 5.1?

Re: Http request doesn't timeout

Posted: 21 Jan 2016 21:23
by Martin
Hi,

I'm not aware about a bug about this on Android 5.1 but it might be caused by a ROM specific bug. What device model are you using? Custom ROM?
A short test seems to work on my device. Is your machine reachable from the internet? If yes, could you send me a test action by mail to info@automagic4android.com so I can try to reproduce this issue?
Does the action stop when you open the flow and press menu->Stop?

Thanks & Regards,
Martin

Re: Http request doesn't timeout

Posted: 25 Jan 2016 07:02
by dib0
Hi!

I have a Fairphone 2. It's not a custom rom, essentially it is stock android with a bit added functionality from Fairphone.

Yesterday I did some testing, it seemed to work perfectly. Today it didn't. I realized that the difference was wifi versus 4G. Wifi works without a problem. On 4G the problem persisted (I restarted my phone to test if it might be a problem with that).

I'll send you a simple flow, but there is nothing special about it. Just a http call to an endpoint that might not be alive (which is what I try to test at that moment).

edit: Oh... and no. There is no way to stop the flow from executing. Hitting menu->stop flow doesn't seem to matter.

Re: Http request doesn't timeout

Posted: 26 Jan 2016 14:27
by Martin
I can still not reproduce this issue however I'm aware that the implementation of this specific feature highly differs between ROMs.
Can you please turn on Debug Log and Log to SD card in the preferences of Automagic, reproduce the problem, wait an additional 30 minutes and then send the log to me (menu->Manage->Log, menu->Send Log)?

Re: Http request doesn't timeout

Posted: 27 Jan 2016 08:52
by dib0
I will do that today. Thanks!

Re: Http request doesn't timeout

Posted: 27 Jan 2016 21:02
by Martin
Thanks for the logs! I think I have found the issue.
Would be great if you could test the next EAP-version of Automagic which should fix this problem. A new EAP build should become available within the next few days.

Regards,
Martin

Re: Http request doesn't timeout

Posted: 28 Jan 2016 06:49
by dib0
No problem!

I'll be glad to perform the test. Let me know when the test version is available.

Re: Http request doesn't timeout

Posted: 29 Jan 2016 20:53
by Martin
The new EAP-build is available now. Let me know when it still fails.

Re: Http request doesn't timeout

Posted: 01 Feb 2016 07:04
by dib0
Ok, thanks!

I installed it. Let you know if the problems reoccurs or not.

Re: Http request doesn't timeout

Posted: 03 Feb 2016 08:07
by dib0
Hi,

It seems to work fine with the fix. Thanks!