Getting Timeout Error during Execution #71

Open
opened 2024-04-17 12:43:49 +02:00 by karan1652 · 4 comments
karan1652 commented 2024-04-17 12:43:49 +02:00 (Migrated from github.com)

Hi,
While making API calls to Uptime Kuma, frequently getting this Timeout Exception.
File "/var/task/uptime_kuma_api/api.py", line 1346, in delete_monitor return self._call('deleteMonitor', id_) File "/var/task/uptime_kuma_api/api.py", line 547, in _call r = self.sio.call(event, data, timeout=self.timeout) File "/var/task/socketio/client.py", line 287, in call raise exceptions.TimeoutError()

when the calls are made from local it has no issue. But when made from a lambda or an EC2, it gets this problem. For Example , if I'm making a get_monitors() call first and if I try to delete few based on the response, It gets timedout there. Logically only one works fine.
Am I missing anything ? can someone help ! TIA

Hi, While making API calls to Uptime Kuma, frequently getting this Timeout Exception. ` File "/var/task/uptime_kuma_api/api.py", line 1346, in delete_monitor return self._call('deleteMonitor', id_) File "/var/task/uptime_kuma_api/api.py", line 547, in _call r = self.sio.call(event, data, timeout=self.timeout) File "/var/task/socketio/client.py", line 287, in call raise exceptions.TimeoutError()` when the calls are made from local it has no issue. But when made from a lambda or an EC2, it gets this problem. For Example , if I'm making a get_monitors() call first and if I try to delete few based on the response, It gets timedout there. Logically only one works fine. Am I missing anything ? can someone help ! TIA
invisibleninja06 commented 2024-04-19 22:46:53 +02:00 (Migrated from github.com)

I am using the ansible collection that uses this api in azure and getting timeouts quite often myself.

I am using the ansible collection that uses this api in azure and getting timeouts quite often myself.
SharkyND commented 2024-04-25 04:13:48 +02:00 (Migrated from github.com)

Is this project actively maintained?

Is this project actively maintained?
regiapriandi012 commented 2024-05-29 05:31:07 +02:00 (Migrated from github.com)

In the official documentation, you can define the timeout time as follows, api = UptimeKumaApi('http://localhost:3001', 100), with an example timeout time of 100 seconds.

Docs: https://uptime-kuma-api.readthedocs.io/en/latest/api.html#uptime_kuma_api.UptimeKumaApi.get_monitor

In the official documentation, you can define the timeout time as follows, api = UptimeKumaApi('http://localhost:3001', 100), with an example timeout time of 100 seconds. Docs: https://uptime-kuma-api.readthedocs.io/en/latest/api.html#uptime_kuma_api.UptimeKumaApi.get_monitor
solick commented 2024-06-30 09:08:51 +02:00 (Migrated from github.com)

i also have the timeout error. Unfortunately, it's currently not working with my playbooks. @lucasheld it would be great of you can give us a sign if you are currently maintaining this project or not. Thanks!

i also have the timeout error. Unfortunately, it's currently not working with my playbooks. @lucasheld it would be great of you can give us a sign if you are currently maintaining this project or not. Thanks!
Sign in to join this conversation.
No description provided.