Opened 8 years ago

Closed 8 years ago

#2027 closed defect (fixed)

Unhandled error in Deferred (0.8.4p1)

Reported by: dberger Owned by:
Priority: patches-accepted Milestone: 0.8.5
Version: 0.8.4p1 Keywords: web
Cc:

Description (last modified by dustin)

I see this frequently in the buildmaster logs, though I haven't yet been able to correlate it with user-visible event(s)

2011-06-29 17:08:03-0700 [-] Unhandled error in Deferred:
2011-06-29 17:08:03-0700 [-] Unhandled Error
	Traceback (most recent call last):
	  File "E:uild_masterexternalTwisted-11.0.0	wistedinternetdefer.py", line 542, in _runCallbacks
	    current.result = callback(current.result, *args, **kw)
	  File "E:uild_masterexternalTwisted-11.0.0	wistedinternetdefer.py", line 791, in _cbDeferred
	    self.callback(self.resultList)
	  File "E:uild_masterexternalTwisted-11.0.0	wistedinternetdefer.py", line 361, in callback
	    self._startRunCallbacks(result)
	  File "E:uild_masterexternalTwisted-11.0.0	wistedinternetdefer.py", line 455, in _startRunCallbacks
	    self._runCallbacks()
	--- <exception caught here> ---
	  File "E:uild_masterexternalTwisted-11.0.0	wistedinternetdefer.py", line 542, in _runCallbacks
	    current.result = callback(current.result, *args, **kw)
	  File "E:uild_masterexternaluildbot-0.8.4p1uildbotstatuswebase.py", line 319, in ok
	    request.finish()
	  File "E:uild_masterexternalTwisted-11.0.0	wistedwebhttp.py", line 866, in finish
	    "Request.finish called on a request after its connection was lost; "
	exceptions.RuntimeError: Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.

Change History (2)

comment:1 Changed 8 years ago by dustin

  • Description modified (diff)
  • Keywords web added
  • Milestone changed from undecided to 0.8.5
  • Priority changed from major to trivial

This is common, and harmless. Basically what's happening is that the browser is severing the connection before Buildbot has finished producing data. You can reproduce it by clicking a button (e.g., force build) repeatedly.

I'm not sure what the best way is to avoid the traceback.

comment:2 Changed 8 years ago by Dustin J. Mitchell

  • Resolution set to fixed
  • Status changed from new to closed

handle early disconnects from web clients

Fixes #2027.

Changeset: 7da09de40563e364f9498a7661609f9163f3487c

Note: See TracTickets for help on using tickets.