kwill1429 / pandora-musicbox

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

CLI Fails on Ad Retrieval with Proxy Ad Block #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run CLI and listen to tunes
2. I do nothing elese, after 2 or 3 tunes play it ends and the window closes. 
Always at the end of the track.
3. i get the following info out before the window closes.

Unhandled Exception: System.Net.WebException: Unable to connect to the remote 
server ---> System.Net.Sockets.SocketException: No connection could be made 
because the target machine actively refused it 127.0.0.1:80
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddre
ss socketAddress)
   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Sock
et s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state,
IAsyncResult asyncResult, Int32 timeout, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at PandoraMusicBox.Engine.PandoraIO.getDoubleclickIdCookie(String url)
   at PandoraMusicBox.Engine.PandoraIO.GetAdvertisement(PandoraUser user)
   at PandoraMusicBox.Engine.MusicBox.GetNextSong(Boolean isSkip)
   at PandoraMusicBox.CLI.Program.PlayNext(Boolean isSkip)
   at PandoraMusicBox.CLI.Program.player_PlaybackEvent(EventCode eventCode)
   at Engine.DirectShowPlayer.<StartEventLoop>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

What is the expected output? What do you see instead?
keep listening without closing, instead it closes. 

What version of the product are you using? On what operating system?
Windows 7 ultimate 64 bit

Please provide any additional information below.

This has on my pc but not my wife's laptop (also windows 7 ultimate 64)
This leads me to believe that it is something unique to my machine. However on 
the chance that you guys have had experience with this problem or indeed anyone 
else has seen it happen I thought it best to report. I tried deleting the user 
data in the user folder, this made no difference.

Original issue reported on code.google.com by p...@sonic-the-hedgehog.com on 19 May 2011 at 8:46

GoogleCodeExporter commented 9 years ago
Looks like this is ad related. Are you using a personal proxy that redirects 
requests for known ad servers to 127.0.0.1? This I think is the cause. 

In any case I will try to reproduce and if I can fix the problem on our end. If 
the program can't find the ad server it should just move on to the next song, 
not crash. ;)

Original comment by conrad.john on 30 Jun 2011 at 4:40

GoogleCodeExporter commented 9 years ago
Looks like you got it. I use a list of known ad servers in the windows host
file. I'll try without it.

Thanks...

Original comment by p...@sonic-the-hedgehog.com on 30 Jun 2011 at 5:24

GoogleCodeExporter commented 9 years ago
Thanks for the bug report. I will post here again when this is fixed.

Original comment by conrad.john on 30 Jun 2011 at 5:57

GoogleCodeExporter commented 9 years ago
If its any help I can send you the hosts file with the list of servers that
are blocked. It could be that the simplest fix would be to remove the
servers that Pandora uses. let me know if you need it.

Paul

Original comment by p...@sonic-the-hedgehog.com on 30 Jun 2011 at 7:11

GoogleCodeExporter commented 9 years ago
I don't need your hosts file. The server that it connects to for Pandora Ads is:
http://ad.doubleclick.net

Original comment by conrad.john on 30 Jun 2011 at 7:16