botamusique: ValueError: Uncached item of id $id in media/cache.py

Describe the bug

botamusique[2463]: [May 04 18:16:22 INFO] bot: play music [url] “Someone in the Crowd” - La La Land (2016) (https://www.youtube.com/watch?v=ocHKTdv-l9U) from playlist La La Land (2016) - F>
botamusique[2463]: Traceback (most recent call last):
botamusique[2463]:   File "/nix/store/slcm3hnfpv03pyvvqd7rrci1imp52vvm-botamusique-unstable-2021-03-13/share/botamusique/.mumbleBot.py-wrapped", line 896, in <module>
botamusique[2463]:     var.bot.loop()
botamusique[2463]:   File "/nix/store/slcm3hnfpv03pyvvqd7rrci1imp52vvm-botamusique-unstable-2021-03-13/share/botamusique/.mumbleBot.py-wrapped", line 560, in loop
botamusique[2463]:     self.async_download_next()
botamusique[2463]:   File "/nix/store/slcm3hnfpv03pyvvqd7rrci1imp52vvm-botamusique-unstable-2021-03-13/share/botamusique/.mumbleBot.py-wrapped", line 415, in async_download_next
botamusique[2463]:     if not next.is_ready():
botamusique[2463]:   File "/nix/store/slcm3hnfpv03pyvvqd7rrci1imp52vvm-botamusique-unstable-2021-03-13/share/botamusique/media/cache.py", line 188, in is_ready
botamusique[2463]:     return self.item().is_ready()
botamusique[2463]:   File "/nix/store/slcm3hnfpv03pyvvqd7rrci1imp52vvm-botamusique-unstable-2021-03-13/share/botamusique/media/cache.py", line 145, in item
botamusique[2463]:     raise ValueError(f"Uncached item of id {self.id}.")
botamusique[2463]: ValueError: Uncached item of id 40d56eeac2a7a5b53af4506829a2e297.
systemd[1]: botamusique.service: Main process exited, code=exited, status=1/FAILURE

Affected version df38c7dbd6d59c6790cf2364d1f344b7f6f72107

To Reproduce Unclear, I wasn’t using the bot at the time, the users said a song finished properly and the bot just quit the mumble session.

Expected behavior Don’t crash on caching issues.

Additional context https://github.com/azlux/botamusique/blob/master/media/cache.py#L145

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Can you enable verbose mode by adding -v to the CLI when starting the bot? I can’t see debug information from the log you have posted.