[Twisted-Python] Unhandled Deferred Error

Godson Gera godson.g at gmail.com
Fri Aug 27 11:20:17 EDT 2010


Hi,

This error is obviously raised when the issued command is failed to execute
at Asterisk end. However there could be variety of reasons for failure, one
common cause is call is hungup on which the command is issued.

By looking at the error it occurs that you might be trying to play some
audio file on the call. So check if the file really exists and is in the
format specified by Asterisk 8000Hz mono 16-bit . Looking at the Asterisk
console while this occurs will also give you useful cues.

As Paul mentioned this is really a starpy and Asterisk question, so posting
queries like this on starpy mailing list will get better insights.

-- 
Thanks & Regards,
Godson Gera
Starpy <http://blog.godson.in/2008/10/starpy-100a13-released-asterisk.html>

On Thu, Aug 26, 2010 at 2:13 PM, shwetanka srivastava
<shwetanka at gmail.com>wrote:

> Hi
>
> I'm using twisted api with starpy to make a conference call. After a
> successful call this error is logged in my log file
>
> ERROR:twsited:Unhandled error in Deferred:
> ERROR:twsited:Unhandled Error
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line
> 148, in dataReceived
>     self.lineReceived(line)
>   File "/usr/local/lib/python2.6/dist-packages/starpy/fastagi.py", line
> 120, in lineReceived
>     df.callback( line )
>   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line
> 243, in callback
>     self._startRunCallbacks(result)
>   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line
> 312, in _startRunCallbacks
>     self._runCallbacks()
> --- <exception caught here> ---
>   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line
> 328, in _runCallbacks
>     self.result = callback(self.result, *args, **kw)
>   File "/usr/local/lib/python2.6/dist-packages/starpy/fastagi.py", line
> 145, in checkFailure
>     raise error.AGICommandFailure( FAILURE_CODE, result )
> starpy.error.AGICommandFailure: (-1, '-1 endpos=97440')
>
> Calls are perfectly ok. I tried to google about the error and found out if
> I don't provide an errback() to a deferred object then this happens.
> How do i find which deferred object is posing this problem and also whether
> it affects the program execution because my program is working absolutely
> fine.
> --
> Regards
> Shwetanka
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20100827/7401e7c1/attachment.htm 


More information about the Twisted-Python mailing list