Code: Select all
Twilio Error checkMessages: twilioClient.messages.delete error: HTTP 409 error: Cannot delete message because delivery has not been completed.
Traceback (most recent call last):
File "plugin.py", line 379, in checkMessages
self.twilioClient.messages.delete(message.sid)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Twilio.indigoPlugin/Contents/Server Plugin/twilio/rest/resources/messages.py", line 153, in delete
return self.delete_instance(sid)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Twilio.indigoPlugin/Contents/Server Plugin/twilio/rest/resources/base.py", line 380, in delete_instance
resp, instance = self.request("DELETE", uri)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Twilio.indigoPlugin/Contents/Server Plugin/twilio/rest/resources/base.py", line 200, in request
resp = make_twilio_request(method, uri, auth=self.auth, **kwargs)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Twilio.indigoPlugin/Contents/Server Plugin/twilio/rest/resources/base.py", line 164, in make_twilio_request
uri=resp.url, msg=message, code=code)
TwilioRestException: HTTP 409 error: Cannot delete message because delivery has not been completed.
It sounds like there's a message in the queue, but that's not what the Twilio console shows:
Code: Select all
Twilio Platform Message Created 0:35:45.50 PST 2018-02-18 —
Outbound Queue Enqueued 0:35:45.64 PST 2018-02-18 0.14 sec
Enqueued 0:35:45.98 PST 2018-02-18 0.49 sec
Enqueued 0:35:47.40 PST 2018-02-18 1.9 secs
Sent 0:35:57.46 PST 2018-02-18 11.97 secs
Just wondering if anyone has ever seen this.
Is there a reason for Redacting/deleting messages after they are sent? Can we just pull that out of the loop?