Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#37 'NotEnoughDataError' is not defined in NewThreadedAppServer

closed-fixed
nobody
WebKit (58)
5
2003-08-24
2003-02-13
No

Shutdown Called Thu Feb 13 12:35:41 2003
('127.0.0.1', 8086)
ThreadedAppServer: Shutting Down
29 2003-02-13 12:35:41 Traceback (most recent call
last):
File ".\WebKit\NewThreadedAppServer.py", line 271, in
threadloop
handler.handleRequest()
File ".\WebKit\NewThreadedAppServer.py", line 448, in
handleRequest
dict = self.receiveDict()
File ".\WebKit\NewThreadedAppServer.py", line 365, in
receiveDict
raise NotEnoughDataError, 'received only %d of %d
bytes when receiving dictL
ength' % (len(chunk), intLength)
NameError: global name 'NotEnoughDataError' is not defined
Stopping AutoReload Monitor

Discussion

  • Logged In: YES
    user_id=326269

    The specific error is a missing definition for the exception
    NotEnoughDataError, however under normal conditions this
    should never occur, in which case you should be able to
    workaround the problem by defining an exception class for
    this.

    class NotEnoughDataError(Exception)
    pass

    You could copy the definition from ThreadedAppServer

    Is the problem repeatable with normal use? If so, then the
    root problem would be some other issue causing not enough
    data to be transfered.

    Is the problem repeatable with ThreadedAppServer?

    FYI - NewThreadedAppServer will be replacing
    ThreadedAppServer in the near future in CVS, and there is
    also a bug "[ 669620 ] Bad Marshal Data error" which is
    related to the processing of data from the adapter.

     
  • Ian Bicking
    Ian Bicking
    2003-08-24

    • status: open --> closed
     
  • Ian Bicking
    Ian Bicking
    2003-08-24

    • status: closed --> closed-fixed