Skip to content
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

工作流报错 #647

Closed
1 of 4 tasks
KKL369 opened this issue Dec 11, 2024 · 2 comments
Closed
1 of 4 tasks

工作流报错 #647

KKL369 opened this issue Dec 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@KKL369
Copy link

KKL369 commented Dec 11, 2024

Occurrence environment

  • Workflow
  • GUI
  • Docker
  • Command line

Bug description

你好,昨天同步了最新代码,工作流报错

Error log

2024-12-10T22:35:38.0254888Z Sorting: 100%|██████████| 789/789 [09:30<00:00,  1.36it/s]Traceback (most recent call last):
2024-12-10T22:35:38.0273105Z   File "/home/runner/work/iptv-api/iptv-api/main.py", line 214, in <module>
2024-12-10T22:35:38.0273939Z     loop.run_until_complete(update_source.start())
2024-12-10T22:35:38.0274487Z     ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
2024-12-10T22:35:38.0275542Z   File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete
2024-12-10T22:35:38.0276556Z     return future.result()
2024-12-10T22:35:38.0276941Z            ~~~~~~~~~~~~~^^
2024-12-10T22:35:38.0277567Z   File "/home/runner/work/iptv-api/iptv-api/main.py", line 200, in start
2024-12-10T22:35:38.0278224Z     await self.main()
2024-12-10T22:35:38.0278810Z   File "/home/runner/work/iptv-api/iptv-api/main.py", line 142, in main
2024-12-10T22:35:38.0279554Z     self.channel_data = await process_sort_channel_list(
2024-12-10T22:35:38.0280119Z                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-10T22:35:38.0280538Z     ...<3 lines>...
2024-12-10T22:35:38.0280822Z     )
2024-12-10T22:35:38.0281076Z     ^
2024-12-10T22:35:38.0281748Z   File "/home/runner/work/iptv-api/iptv-api/utils/channel.py", line 580, in process_sort_channel_list
2024-12-10T22:35:38.0282657Z     info_list = sort_urls_by_speed_and_resolution(name, info_list, logger)
2024-12-10T22:35:38.0283648Z   File "/home/runner/work/iptv-api/iptv-api/utils/speed.py", line 292, in sort_urls_by_speed_and_resolution
2024-12-10T22:35:38.0284802Z     filter_data.sort(key=combined_key, reverse=True)
2024-12-10T22:35:38.0285284Z     ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-10T22:35:38.0285995Z   File "/home/runner/work/iptv-api/iptv-api/utils/speed.py", line 282, in combined_key
2024-12-10T22:35:38.0286949Z     speed, delay, resolution, origin = item["speed"], item["delay"], item["resolution"], item["origin"]
2024-12-10T22:35:38.0287874Z                                        ~~~~^^^^^^^^^
2024-12-10T22:35:38.0288411Z TypeError: tuple indices must be integers or slices, not str
2024-12-10T22:35:41.1325472Z /home/runner/work/_temp/7db0fbc4-d834-4a74-8419-e0a30a09f9fe.sh: line 1:  1896 Segmentation fault      (core dumped) pipenv run dev
2024-12-10T22:35:41.1337289Z ##[error]Process completed with exit code 139.
2024-12-10T22:35:41.1420144Z Post job cleanup.
@KKL369 KKL369 added the bug Something isn't working label Dec 11, 2024
Guovin added a commit that referenced this issue Dec 11, 2024
@Guovin
Copy link
Owner

Guovin commented Dec 11, 2024

更新代码,再试试

@KKL369
Copy link
Author

KKL369 commented Dec 11, 2024

更新代码,再试试

已无问题,谢谢作者辛勤付出

@Guovin Guovin closed this as completed Dec 11, 2024
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

No branches or pull requests

2 participants