-
-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeWarning: coroutine 'browser.start' was never awaited and nothing is printed on async [BUG] #115
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
You need to update your TikTokApi package. TikTok made changes yesterday that broke the package. Update with the following command.
|
I'll be releasing a patch later today that might help your issue. |
Thank you!🤗 |
I'm not super great with asyncio and I haven't run into this issue so I'll leave this open hoping someone else finds a solution. |
3.1. Use aiohttp or another async library. |
@davidteather, please rewrite requests to aiohttp. |
There's any update about this? |
Now is not printing anything. |
pyppeteer/pyppeteer#143 Based on this I added autoClose to false and now it does not print anything and the program closes. |
I'm getting the same thing : RuntimeWarning: coroutine 'browser.start' was never awaited then gc.collect() |
I can confirm running this in a discord bot breaks things. In my case, it's https://github.com/davidteather/TikTok-Api/blob/master/TikTokApi/browser.py#L52-L57. Writing those to use the current event loop, and using run_in_executor should fix the issue and allow it to be used with async libraries update on this - im working on what could be a potential fix |
Awesome @crazygmr101 let us know! |
I submitted #198 - I'm not sure if it fixes this issue, but I did run it in a discord bot with
|
Try to use my comment on #235 it should resolve your issue. It might throw a lot of errors when the bot is closed, but it'll work. |
Ok thanks I will test asap! |
Describe the bug
I'm putting this api inside a discord bot using discord.py, thus I'm running the api inside an async function. I'm getting this error that makes the bot close.
RuntimeError: Event loop is closed
sys:1: RuntimeWarning: coroutine 'Launcher.killChrome' was never awaited
The buggy code
async def tiktok_interact(message,channel):
Expected behavior
await channel.send function makes the bot send whatever text or input I insert.
Screenshots
Additional context
I'm running it on a debian 9 VPS.
The text was updated successfully, but these errors were encountered: