media scanner not fault tolerant to themoviedb/thetvdb downtimes

Bug #387237 reported by Philippe Normand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
Critical
Philippe Normand

Bug Description

themoviedb API is currently down, this breaks badly the media scanner.
No real steps to reproduce as themoviedb/thetvdb downtimes can occur... any time...

Traceback which hangs the scan:

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/python/log.py", line 84, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/python/log.py", line 69, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/gtk2reactor.py", line 199, in _doReadOrWrite
    why = source.doRead()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 463, in doRead
    return self.protocol.dataReceived(data)
  File "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line 231, in dataReceived
    why = self.lineReceived(line)
  File "/home/phil/bzr/moovida1/elisa-plugins/elisa/plugins/http_client/extern/client_http.py", line 290, in lineReceived
    self.inRequests[0].gotInitialLine(line)
  File "/home/phil/bzr/moovida1/elisa-plugins/elisa/plugins/http_client/extern/client_http.py", line 188, in gotInitialLine
    self.code = int(code)
exceptions.ValueError: invalid literal for int() with base 10: 'HTML'
Unhandled error in Deferred:
Traceback (most recent call last):
Failure: exceptions.ValueError: invalid literal for int() with base 10: 'HTML'

Philippe Normand (philn)
Changed in elisa:
importance: Undecided → Critical
milestone: none → 1.0.4
status: New → Confirmed
Philippe Normand (philn)
Changed in elisa:
status: Confirmed → In Progress
assignee: nobody → Philippe Normand (philn)
Philippe Normand (philn)
Changed in elisa:
status: In Progress → Fix Committed
Olivier Tilloy (osomon)
Changed in elisa:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.