Http request doesn't timeout

Post your questions and help other users.

Moderator: Martin

dib0
Posts: 9
Joined: 15 Jan 2014 12:43

Http request doesn't timeout

Post by dib0 » 21 Jan 2016 07:31

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?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Http request doesn't timeout

Post by Martin » 21 Jan 2016 21:23

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

dib0
Posts: 9
Joined: 15 Jan 2014 12:43

Re: Http request doesn't timeout

Post by dib0 » 25 Jan 2016 07:02

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Http request doesn't timeout

Post by Martin » 26 Jan 2016 14:27

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)?

dib0
Posts: 9
Joined: 15 Jan 2014 12:43

Re: Http request doesn't timeout

Post by dib0 » 27 Jan 2016 08:52

I will do that today. Thanks!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Http request doesn't timeout

Post by Martin » 27 Jan 2016 21:02

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

dib0
Posts: 9
Joined: 15 Jan 2014 12:43

Re: Http request doesn't timeout

Post by dib0 » 28 Jan 2016 06:49

No problem!

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Http request doesn't timeout

Post by Martin » 29 Jan 2016 20:53

The new EAP-build is available now. Let me know when it still fails.

dib0
Posts: 9
Joined: 15 Jan 2014 12:43

Re: Http request doesn't timeout

Post by dib0 » 01 Feb 2016 07:04

Ok, thanks!

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

dib0
Posts: 9
Joined: 15 Jan 2014 12:43

Re: Http request doesn't timeout

Post by dib0 » 03 Feb 2016 08:07

Hi,

It seems to work fine with the fix. Thanks!

Post Reply