Fixing MPRequestErrorDomain Error in Apple Music Shortcut
Today I learned how to work around a bug in the iOS Shortcuts app when trying to build a song rating tool for Apple Music.
The shortcut is simple: get the currently playing song, prompt for a 0-5 rating, and append the result to a file in iCloud Drive. But I kept running into this error:
The operation couldn’t be completed. (MPRequestErrorDomain error 1.)
It failed on the “Get Current Song” action, even though music was actively playing in the Apple Music app.