Commit 1579d5f
authored
[Bugfix] RuntimeError: There is no current event loop in thread
```
RuntimeError: There is no current event loop in thread 'ThreadPoolExecutor-0_0'
TRACEBACK:
Traceback (most recent call last):
...
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/TikTokAPI/tiktokapi.py", line 239, in downloadVideoById
video_info = self.getVideoById(video_id)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/TikTokAPI/tiktokapi.py", line 236, in getVideoById
return self.send_get_request(url, params)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/TikTokAPI/tiktokapi.py", line 74, in send_get_request
signature = self.tiktok_browser.fetch_auth_params(url, language=self.language)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/TikTokAPI/tiktok_browser.py", line 54, in fetch_auth_params
return asyncio.get_event_loop().run_until_complete(self.async_fetch_auth_params(url, language))
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/events.py", line 656, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
```1 parent 86ab7ca commit 1579d5f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments