Retry on timeouts?
-
Hi there, the plugin works very well, in general. Today it skipped a post, and investigating in the log files I found this:
[2020-02-01 13:15:23]
Method: sendPhoto
Params: {“parse_mode”:”HTML”,”disable_notification”:false,”photo”:”https:\/\/www.mysite.foo\/wp-content\/uploads\/2020\/01\/machine_1280.jpg”,”caption”:”Article content”,”reply_markup”:”{\”inline_keyboard\”:[[{\”text\”:\”\\ud83d\\udd17 Leggi articolo\”,\”url\”:\”https:\\\/\\\/www.mysite.foo\\\/article-slug\\\/\”}]]}”,”chat_id”:”-1001418552813″}
——————————–
WP_Error: http_request_failed cURL error 28: Operation timed out after 20001 milliseconds with 0 bytes receivedWould you consider thinking of adding some sort of retry logic (or re-schedule the task a minute later or something similar) when timeouts happen? Otherwise the message is lost.
I do understand the need to drop malformed messages (i.e. I had another one where the user had inserted a BMP image as opposed to a GIF or JPG and telegram puked at it) but for transient network conditions maybe this needs some special handling?Thanks,
The topic ‘Retry on timeouts?’ is closed to new replies.