I have a Tasker action HTTP GET with options set:
Server
ort 192.168.2.10
Path CamAlerts/Enabled?forEvent=%par1
192.168.2.10 - is an address of my local server that is located in the same network where the phone with Tasker is located.
The problem is that sometimes the action fails with timeout error. I enabled Tasker logging and what I see in the log:
01-11-2017 E: 14.54.57#E: Input/Output error for http://192.168.2.10/CamAlerts/Enabled?forEvent=Pir: java.net.SocketTimeoutException.
I checked server logs (for the server to which Tasker fails to connect with Timeout error) - there are no any calls from Tasker at that time. The server was available at that time.
It seems that something is wrong with the phone.
The Wi-Fi connection is excellent - there is no any noticed problem with it. Everything is available through Wi-Fi when I try to access whatever manually through the phone.
One important thing to note is that this timeout error occurres when the phone is in sleep state. And it occurs not constantly. Most of the time the phone triggers the URL successfully and only about 1 from 10 times it fails with Timeout error.
What I tried and it didn't solve the issue:
1. Checked Wi-Fi Advanced option "Keep Wi-Fi on during sleep". It was set to Always so I didn't change it.
2. I have tried to wake the phone with Tasker before executing HTTP GET action so I added the following action before HTTP GET: Plugin "Secure settings", CPU Awake Only - 1 Minute. It also didn't help.
3. I found the same problem on the internet that IPv6 can lead to this issue so I disabled IPv6 protocol in the phone using the app from Play store "IPv6 Auto Disable". This also didn't help...
I don't know what else I can try or where I can find the root of this problem.
Can you please help with this issue what else I can try.
The used phone: Samsung Galaxy S5 Duos (SM-G900FD)
Android version: 6.0.1
Stock firmware: Yes
Rooted: YES
Thank you!
Server

Path CamAlerts/Enabled?forEvent=%par1
192.168.2.10 - is an address of my local server that is located in the same network where the phone with Tasker is located.
The problem is that sometimes the action fails with timeout error. I enabled Tasker logging and what I see in the log:
01-11-2017 E: 14.54.57#E: Input/Output error for http://192.168.2.10/CamAlerts/Enabled?forEvent=Pir: java.net.SocketTimeoutException.
I checked server logs (for the server to which Tasker fails to connect with Timeout error) - there are no any calls from Tasker at that time. The server was available at that time.
It seems that something is wrong with the phone.
The Wi-Fi connection is excellent - there is no any noticed problem with it. Everything is available through Wi-Fi when I try to access whatever manually through the phone.
One important thing to note is that this timeout error occurres when the phone is in sleep state. And it occurs not constantly. Most of the time the phone triggers the URL successfully and only about 1 from 10 times it fails with Timeout error.
What I tried and it didn't solve the issue:
1. Checked Wi-Fi Advanced option "Keep Wi-Fi on during sleep". It was set to Always so I didn't change it.
2. I have tried to wake the phone with Tasker before executing HTTP GET action so I added the following action before HTTP GET: Plugin "Secure settings", CPU Awake Only - 1 Minute. It also didn't help.
3. I found the same problem on the internet that IPv6 can lead to this issue so I disabled IPv6 protocol in the phone using the app from Play store "IPv6 Auto Disable". This also didn't help...
I don't know what else I can try or where I can find the root of this problem.
Can you please help with this issue what else I can try.
The used phone: Samsung Galaxy S5 Duos (SM-G900FD)
Android version: 6.0.1
Stock firmware: Yes
Rooted: YES
Thank you!