Skip to content
Snippets Groups Projects
Closed (moved) Stem doesn't recognize error 555 on attach_stream
  • View options
  • Stem doesn't recognize error 555 on attach_stream

  • View options
  • Closed (moved) Issue created by cypherpunks

    When trying to attach a stream that is not controlled by the controller using Controller.attach_stream, Tor will reply with error 555. Stem does not recognize this and will throw a generic exception:

    stem.ProtocolError: ATTACHSTREAM returned unexpected response code: 555

    I think an InvalidArguments exception would be best suited for this error code.

    @@ -1981,6 +1981,8 @@ class Controller(BaseController):
             raise stem.InvalidRequest(response.code, response.message)
           elif response.code == '551':
             raise stem.OperationFailed(response.code, response.message)
    +      elif response.code == '555':
    +        raise stem.InvalidArguments(response.code, response.message)
           else:
             raise stem.ProtocolError("ATTACHSTREAM returned unexpected response code: %s" % response.code)

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading