Note that Indigo is getting the notice from Twilio, and later, the trigger does fire, but not so in the second example.
I have the plugin set to the default of polling every 5 minutes... and while I'm not cascading messages to Indigo, is there a "time out" period where subsequent messages won't be acted upon? Something more than 5-10 seconds or so?
- Code: Select all
WebServer request to set variable "twilio_ping" value to "true"
Trigger **Get Twilo
Twilio Error checkMessages: twilioClient.messages.delete() error: HTTP 409 error: Unable to delete record: Cannot delete message because delivery has not been completed.
Traceback (most recent call last):
File "plugin.py", line 433, in checkMessages
self.twilioClient.messages(message.sid).delete()
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/Twilio.indigoPlugin/Contents/Server Plugin/twilio/rest/api/v2010/account/message/__init__.py", line 326, in delete
return self._version.delete('delete', self._uri)
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/Twilio.indigoPlugin/Contents/Server Plugin/twilio/base/version.py", line 124, in delete
raise self.exception(method, uri, response, 'Unable to delete record')
TwilioRestException: HTTP 409 error: Unable to delete record: Cannot delete message because delivery has not been completed.
Trigger Twilio Home Kitchen Test
In this case, which was 6 minutes later, Indigo is getting the message, but the trigger( a simple light toggle) is not acted upon for some reason. The **Get Twilo (delayed action) resets the variable... (just didn't include it in the 1st example..
- Code: Select all
WebServer request to set variable "twilio_ping" value to "true"
Trigger **Get Twilo
Twilio Error checkMessages: twilioClient.messages.delete() error: HTTP 409 error: Unable to delete record: Cannot delete message because delivery has not been completed.
Traceback (most recent call last):
File "plugin.py", line 433, in checkMessages
self.twilioClient.messages(message.sid).delete()
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/Twilio.indigoPlugin/Contents/Server Plugin/twilio/rest/api/v2010/account/message/__init__.py", line 326, in delete
return self._version.delete('delete', self._uri)
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/Twilio.indigoPlugin/Contents/Server Plugin/twilio/base/version.py", line 124, in delete
raise self.exception(method, uri, response, 'Unable to delete record')
TwilioRestException: HTTP 409 error: Unable to delete record: Cannot delete message because delivery has not been completed.
Schedule **Get Twilo (delayed action)