stomp.py: Random out-of-range exceptions
I am getting the following exception when running my stomp.py based client for a while. There are no other warning signs. I am trying to consume the UK’s Network Rail datafeeds which use ActiveMQ as the backend.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/home/filip/RailDelay/server/lib/python3.4/site-packages/stomp/transport.py", line 299, in __receiver_loop
f = utils.parse_frame(frame)
File "/home/filip/RailDelay/server/lib/python3.4/site-packages/stomp/utils.py", line 131, in parse_frame
f.cmd = preamble_lines[first_line]
IndexError: list index out of range
I am using the latest version of the package as published to pypi.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (5 by maintainers)
I’m using the following code in an AWS Lambda (Python 3.6) to write messages from API Gateway to Amazon MQ. The differences I notice are:
ssl_version=ssl.PROTOCOL_TLSheadersandpersistenttoclient.send()I found it useful to set up Active MQ on my local machine to test and debug my stomp.py calls. That’s how I figured out the correct
ssl_version. I can view the Active MQ logs on my local machine, but I cannot figure out how to view the Active MQ logs on Amazon MQ. It appears that this is still an outstanding feature request.with 4.1.16 I cannot reproduce the same behaviour, this is what I get from logging
Hi @amihalik Thanks for your reply. It works 👍 when I changed the port from int to string.