Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6165

Python stompest tests do not work with newer releases

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.13.0
    • 5.14.0
    • Test Cases
    • None
    • Python 2.7

    • Patch Available
    • Patch

    Description

      The listener.py from the stompest API Python example doesn't work with this error message:

      Unhandled error in Deferred:
      
      
      Traceback (most recent call last):
        File "/Users/iweiss/homebrew/lib/python2.7/site-packages/twisted/internet/defer.py", line 393, in callback
          self._startRunCallbacks(result)
        File "/Users/iweiss/homebrew/lib/python2.7/site-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
          self._runCallbacks()
        File "/Users/iweiss/homebrew/lib/python2.7/site-packages/twisted/internet/defer.py", line 588, in _runCallbacks
          current.result = callback(current.result, *args, **kw)
        File "/Users/iweiss/homebrew/lib/python2.7/site-packages/twisted/internet/defer.py", line 1184, in gotResult
          _inlineCallbacks(r, g, deferred)
      --- <exception caught here> ---
        File "/Users/iweiss/homebrew/lib/python2.7/site-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
          result = g.send(result)
        File "listener.py", line 45, in run
          client.subscribe(destination, self.handleFrame, headers={'ack': 'auto', 'id': 'required-for-STOMP-1.1'}, ack=False)
        File "/Users/iweiss/homebrew/lib/python2.7/site-packages/stompest/util/__init__.py", line 16, in __checkattr
          return f(self, *args, **kwargs)
        File "/Users/iweiss/homebrew/lib/python2.7/site-packages/twisted/internet/defer.py", line 1265, in unwindGenerator
          gen = f(*args, **kwargs)
      exceptions.TypeError: subscribe() got an unexpected keyword argument 'ack'
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cshannon Christopher L. Shannon
            iweiss Ingo Weiss
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment