kwill1429 / pandora-musicbox

Automatically exported from code.google.com/p/pandora-musicbox
0 stars 0 forks source link

Crash if user tries to rate a song on a shared station #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Problem:
When listening to a shared station from a friend in the Pandora CLI (and 
probably windows plugin) you get the following exception if you try to rate a 
song.

Expected Behavior:
On the web site, if you try to rate a song, it will prompt asking you if you 
want to make a clone of this station for yourself.  We can either do this, or 
simply make this type of station read-only.

The exception follows:
Very sorry, but something has gone horribly wrong!

AppData: C:\Users\tcollins\AppData\Local\Pandora MusicBox\Pandora 
MusicBox\0.5.1.85
LISTENER_NOT_AUTHORIZED: station id: 339104942378885957 not authorized to 
modify station

   at PandoraMusicBox.Engine.PandoraIO.ExecuteRequest(PandoraUser user, Boolean useAuthToken, PandoraRequest request, Object[] paramList)
   at PandoraMusicBox.Engine.PandoraIO.RateSong(PandoraUser user, PandoraStation station, PandoraSong song, PandoraRating rating)
   at PandoraMusicBox.Engine.MusicBox.<>c__DisplayClass1.<RateSong>b__0()
   at PandoraMusicBox.Engine.MusicBox.VerifyAndExecute(ExecuteDelegate logic)
   at PandoraMusicBox.Engine.MusicBox.RateSong(PandoraSong song, PandoraRating rating)
   at PandoraMusicBox.CLI.Program.RunMainLoop()
   at PandoraMusicBox.CLI.Program.Main(String[] args)

Original issue reported on code.google.com by travistx on 30 Nov 2010 at 8:44