hey,
i'm following the github repository for RTDS via the following link:
https://github.com/urbanairship/connect-python-library
when i'm running the Python script and changing the following parameters:
Url (for EU), app key, access token.
>>> import uaconnect >>> consumer = uaconnect.Consumer( ... 'application_key', 'access_token', ... uaconnect.FileRecorder('.offset')) >>> consumer.connect() >>> for event in consumer.read(): ... if event is None: ... continue >>> print("Got event: {}".format(event)) >>> consumer.ack(event)
i'm receiving the following error:
Traceback (most recent call last):
File "C:\Users\asafha\PycharmProjects\Learning_Project\venv\Airship int live streaming.py", line 5, in <module>
consumer.connect()
File "C:\Users\asafha\PycharmProjects\Learning_Project\venv\lib\site-packages\uaconnect\consumer.py", line 241, in connect
elif self.start:
AttributeError: 'Consumer' object has no attribute 'start'
please note, that with Curl Command i'm receiving the events.
questions:
1. should i add Bearer string before the access_token such as in Curl command?
2. how can i solve this error and get the streaming events?
Assaf
Comments
2 comments