id

293

publisher

jnanar@tickets.goffi.org/cbdbdfe8-6983-4573-910c-5b8b865c83fa

title
Livervia exceptions
author
Jnanar
created
18/05/2019, 15:09
updated
18/05/2019, 15:09
labels
livervia
type
bug
status
queued
priority
normal
milestone
0.7
severity
normal
body

Livervia throws a lot of exceptions. They should be handled.

Example:

2019-05-18 17:01:05+0200 [-] /!\ Unhandled error in Deferred:
2019-05-18 17:01:05+0200 [-] /!\ Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/txjsonrpc/web/jsonrpc.py", line 172, in _responseFailed
call.cancel()
File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 545, in cancel
self.errback(failure.Failure(CancelledError()))
File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 501, in errback
self._startRunCallbacks(fail)
File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, args, *kw)
File "/usr/lib/python2.7/site-packages/txjsonrpc/web/jsonrpc.py", line 190, in _cbRender
request.write(s)
File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 238, in write
http.Request.write(self, data)
File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1122, in write
self.channel.writeHeaders(version, code, reason, headers)
exceptions.AttributeError: 'NoneType' object has no attribute 'writeHeaders'

--

2019-05-18 16:59:50+0200 [_GenericHTTPChannelProtocol,3,127.0.0.1] /!\ Unhandled Error
Traceback (most recent call last):
Failure: twisted.internet.defer.CancelledError:

--

2019-05-18 16:59:41+0200 [_GenericHTTPChannelProtocol,2,127.0.0.1] /!\ Unhandled error in Deferred:
2019-05-18 16:59:41+0200 [_GenericHTTPChannelProtocol,2,127.0.0.1] /!\ Unhandled Error
Traceback (most recent call last):
--- <exception caught here> ---
File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, args, *kw)
File "/usr/lib/python2.7/site-packages/libervia/server/pages.py", line 1250, in _internalError
self.pageError(request, C.HTTP_INTERNAL_ERROR)
File "/usr/lib/python2.7/site-packages/libervia/server/pages.py", line 1158, in pageError
raise failure.Failure(exceptions.CancelError(u"error page is used"))
sat.core.exceptions.CancelError: error page is used
--

2019-05-18 16:59:41+0200 [_GenericHTTPChannelProtocol,2,127.0.0.1] /!\ Uncatched error for HTTP request on http://127.0.0.1:8080/blog/view: [Failure instance: Traceback: <type 'exceptions.UnboundLocalError'>: local variable 'service' referenced before assignment
/usr/lib/python2.7/site-packages/libervia/server/pages.py:1584:render_GET
/usr/lib/python2.7/site-packages/libervia/server/pages.py:1580:renderPage
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:460:callback
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:568:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:654:_runCallbacks
/usr/lib/python2.7/site-packages/libervia/server/pages.py:1241:_renderEb
/usr/lib/python2.7/site-packages/twisted/python/failure.py:441:trap
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:654:_runCallbacks
/usr/lib/python2.7/site-packages/libervia/pages/blog/view/page_meta.py:99:parse_url

--
2019-05-18 16:58:47+0200 [-] /!\ Unhandled Error
Traceback (most recent call last):
Failure: sat_frontends.bridge.bridge_frontend.BridgeException: UnknownEntityError: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in message_cb
retval = candidate_method(self, args, *keywords)
File "/usr/lib/python2.7/site-packages/sat/bridge/dbus_bridge.py", line 325, in getEntityData
return self._callback("getEntityData", unicode(jid), keys, unicode(profile))
File "/usr/lib/python2.7/site-packages/sat/bridge/dbus_bridge.py", line 107, in _callback
result = self.cbname
File "/usr/lib/python2.7/site-packages/sat/core/sat_main.py", line 98, in <lambda>
jid.JID(jid
), keys, profile
File "/usr/lib/python2.7/site-packages/sat/memory/memory.py", line 990, in getEntityData
entity_jid, keys_list
UnknownEntityError: Entity grima@agayon.be not in cache (was requesting dbus.Array([dbus.String(u'avatar'), dbus.String(u'nick')], signature=dbus.Signature('s')))
--

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_nFiK5W4AxGpKdaiaQdBt3o

You are not logged. You need to log in to comment.