Stopping Music Mode causes a general error

I'm working on an app to flash a Yeelight RGB bulb to the beat of a song. From the API docs, it seems like I have to use music mode to get around the client quota of 60 requests per minute. I was having some issues getting it to work, so I wrote the following code to test what exactly was going wrong. Using a debugger, I found that telling the bulb to stop music mode causes a general error exception no matter the circumstances. I even tried creating a bulb object in a python console and got the same error. Am I misunderstanding how music mode works or is something else wrong?

Test Code

from yeelight import *
import time

inter = 2
bulbs = discover_bulbs()
bulb  = Bulb(bulbs[0]['ip'])



while True:
    bulb.stop_music()
    bulb.start_music()
    bulb.turn_on()
    time.sleep(inter)
    bulb.turn_off()
    time.sleep(inter)
    bulb.stop_music()

Error Log

File "C:\Users\ackbe\musicmodetets.py", line 10, in <module>
  bulb.stop_music()
File "<decorator-gen-14>", line 2, in stop_music
File "C:\Users\ackbe\AppData\Local\Programs\Python\Python36\Lib\site-packages\yeelight\main.py", line 78, in _command
  result = self.send_command(method, params).get("result", [])
File "C:\Users\ackbe\AppData\Local\Programs\Python\Python36\Lib\site-packages\yeelight\main.py", line 385, in send_command
  raise BulbException(response["error"])

yeelight.main.BulbException: {'code': -5000, 'message': 'general error'}
Assignee Loading
Time tracking Loading