This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Issue when async streaming #1628
Labels
Discussion
This was converted/moved from/to a discussion
Invalid
This is not valid
Question
This is a question
Sorry for messaging here, usually I'm the one answering lots of questions on discord.
I have a stream code that includes:
class Listener(Stream):
async def on_data(self, data):
I get the following issue when running:
/opt/virtualenvs/python3/lib/python3.8/site-packages/tweepy/streaming.py:133: RuntimeWarning: coroutine 'Listener.on_data' was never awaited
self.on_data(line)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
What can I do to fix this? I may have misread the async docs (since it's past 1am my time), but if I haven't this might be a module issue.
Also, how can I handle
Stream connection has errored or timed out
now thatreturn
values are phased out? I am using 4.0.0a.Sorry and thank you again.
Best,
generousjj
The text was updated successfully, but these errors were encountered: