Skip to content

Conversation

@fllesser
Copy link
Owner

@fllesser fllesser commented Jan 2, 2026

fixes #433

@github-actions github-actions bot added the bug Something isn't working label Jan 2, 2026
@codecov
Copy link

codecov bot commented Jan 2, 2026

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
42 1 41 3
View the full list of 1 ❄️ flaky test(s)
tests.parsers.test_twitter::test_video

Flake rate in main: 20.75% (Passed 191 times, Failed 50 times)

Stack Traces | 6.64s run time
.../nonebot_plugin_parser/download/__init__.py:57: in streamd
    response.raise_for_status()
.venv/lib/python3.14.../site-packages/httpx/_models.py:829: in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
E   httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://pbs.twimg.com/media/GmxZe5AWwAEuoiK.jpg'
E   For more information check: https://developer.mozilla..../HTTP/Status/403

During handling of the above exception, another exception occurred:
tests/parsers/test_twitter.py:32: in test_video
    await asyncio.gather(*[parse_video(url) for url in urls])
tests/parsers/test_twitter.py:29: in parse_video
    cover_path = await video_content.get_cover_path()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/data.py:51: in get_cover_path
    self.cover = await self.cover
                 ^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/download/__init__.py:175: in download_img
    return await self.streamd(url, file_name=img_name, ext_headers=ext_headers)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/download/__init__.py:78: in streamd
    raise DownloadException("媒体下载失败")
E   nonebot_plugin_parser.exception.DownloadException: 媒体下载失败

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@github-actions
Copy link

github-actions bot commented Jan 2, 2026

类型 PIL 耗时(秒) HTML 耗时(秒) 渲染所用图片总大小(MB) PIL 导出图片大小(MB) HTML 导出图片大小(MB)
微博视频2 0.01144 0.93117 0.01280 0.03694 0.17206
微博视频 0.01243 0.95870 0.01280 0.03591 0.17000
微博纯文2 0.04126 1.06221 0.00605 0.12128 0.28607
微博转发纯文 0.07158 1.17345 0.01382 0.24485 0.40196
微博转发(视频) 0.09353 1.23391 14.90968 0.37567 0.78044
微博转发(横图) 0.22885 1.36552 3.27378 0.48334 1.41127
哔哩哔哩动态 0.24100 2.48184 0.01244 0.19168 0.42498
微博图集(超过9张) 0.29335 1.25204 1.01576 0.31642 0.68563
微博图集(2张) 0.42286 1.17851 11.60759 0.64789 1.63232
微博图集(3张) 0.50605 1.19058 6.12349 0.34544 0.94297
bilibili-opus 0.51843 2.72478 1.21296 1.35127 2.35157
微博转发(竖图) 0.57489 2.31743 4.13997 0.41472 2.25983
微博图集(4张) 1.19427 2.01157 40.18564 0.71677 1.81547
微博图集(9张) 1.62231 2.12675 23.06663 0.98493 2.48285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: 字体资源被持续占用未释放

2 participants