XMPlay Last.fm/Audioscrobbler plugin (xmp-scrobbler)

Started by yagood,

yagood

Quote from: adscvrThis is the output:
2006-08-17 17:07:33 [LIBSCROBBLER] Using proxy server: ca-proxy2.br.bosch.com:8080
2006-08-17 17:07:33 [LIBSCROBBLER] ...

I cleared all the text boxes and saved. Then disabled proxy and authentication and closed xmplay. When executed again, i enabled the options and filled the proxy, port, user and password boxes. Saved and the above message again :(


Hmmm, this is strange. I modified the message so it should say that authentication is used. I attach version with a slight change. Stupid question - are you sure that you replaced old xmp-scrobbler.dll with the new one?

adscvr

Now it changed:

2006-08-17 17:24:51 [LIBSCROBBLER] Using proxy server: ca-proxy2.br.bosch.com:8080 (with authentication - user and password are set in options)
2006-08-17 17:24:51 [CACHE] Resizing cache array - new length: 233
2006-08-17 17:24:51 [CACHE] Number of entries in cache: 233
2006-08-17 17:24:51 [LIBSCROBBLER] ...
2006-08-17 17:24:51 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2006-08-17 17:24:51 [DEBUG] XMP_SetTimer( 305 )
2006-08-17 17:24:51 [DEBUG] XMP_KillTimer
2006-08-17 17:24:51 [INFO] Next submission in 152 seconds... (xmpCounter = 13406400)
2006-08-17 17:24:51 [LIBSCROBBLER] The server reported a processing error.
2006-08-17 17:24:51 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:24:51 [LIBSCROBBLER] Unable to handshake: sleeping...

I'm sure i replaced the other one. In fact, i did it two times. Don't know :P Well,  the new message appears but the issue persists.

yagood

Hm, OK, this is weird. I attach another version with some more debugging info being written in the log, please test it and paste log contents here.

adscvr

I've deleted the log file so it can be created again. Here it is:

2006-08-17 17:50:48 [DEBUG] DSP_New()
2006-08-17 17:51:01 [DEBUG] DSP_NewTrack (OPEN)
2006-08-17 17:51:01 [LIBSCROBBLER] Using proxy server: ca-proxy2.br.bosch.com:8080 (with authentication - user and password are set in options)
2006-08-17 17:51:01 [LIBSCROBBLER] ...
2006-08-17 17:51:01 [CACHE] Resizing cache array - new length: 234
2006-08-17 17:51:01 [CACHE] Number of entries in cache: 234
2006-08-17 17:51:01 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2006-08-17 17:51:01 [DEBUG] XMP_SetTimer( 500 )
2006-08-17 17:51:01 [DEBUG] XMP_KillTimer
2006-08-17 17:51:01 [INFO] Next submission in 240 seconds... (xmpCounter = 21168000)
2006-08-17 17:51:01 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:51:01 [LIBSCROBBLER] The server reported a processing error.
2006-08-17 17:51:01 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:51:01 [LIBSCROBBLER] Via:1.1 CA-PROXY2


2006-08-17 17:51:01 [LIBSCROBBLER] Proxy-Authenticate: NTLM


2006-08-17 17:51:01 [LIBSCROBBLER] Proxy-Authenticate: Kerberos


2006-08-17 17:51:01 [LIBSCROBBLER] Proxy-Authenticate: Negotiate


2006-08-17 17:51:01 [LIBSCROBBLER] Pragma: no-cache


2006-08-17 17:51:01 [LIBSCROBBLER] Cache-Control: no-cache


2006-08-17 17:51:01 [LIBSCROBBLER] Content-Type: text/html


2006-08-17 17:51:01 [LIBSCROBBLER] Content-Length: 2373 


2006-08-17 17:51:01 [LIBSCROBBLER]


2006-08-17 17:51:01 [LIBSCROBBLER] Unable to handshake: sleeping...
2006-08-17 17:52:41 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:52:41 [LIBSCROBBLER] The server reported a processing error.
2006-08-17 17:52:41 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:52:41 [LIBSCROBBLER] Via:1.1 CA-PROXY2


2006-08-17 17:52:41 [LIBSCROBBLER] Proxy-Authenticate: NTLM


2006-08-17 17:52:41 [LIBSCROBBLER] Proxy-Authenticate: Kerberos


2006-08-17 17:52:41 [LIBSCROBBLER] Proxy-Authenticate: Negotiate


2006-08-17 17:52:41 [LIBSCROBBLER] Pragma: no-cache


2006-08-17 17:52:41 [LIBSCROBBLER] Cache-Control: no-cache


2006-08-17 17:52:41 [LIBSCROBBLER] Content-Type: text/html


2006-08-17 17:52:41 [LIBSCROBBLER] Content-Length: 2373 


2006-08-17 17:52:41 [LIBSCROBBLER]


2006-08-17 17:52:41 [LIBSCROBBLER] Unable to handshake: sleeping...
2006-08-17 17:53:02 [DEBUG] DSP_SetFormat( 1, 0, 0 )
2006-08-17 17:53:02 [DEBUG] DSP_StopTrack
2006-08-17 17:53:02 [DEBUG] XMP_KillTimer
2006-08-17 17:53:02 [DEBUG] DSP_NewTrack (CLOSE)
2006-08-17 17:53:02 [DEBUG] DSP_NewTrack (OPEN)
2006-08-17 17:53:02 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2006-08-17 17:53:02 [DEBUG] XMP_SetTimer( 305 )
2006-08-17 17:53:02 [DEBUG] XMP_KillTimer
2006-08-17 17:53:02 [INFO] Next submission in 152 seconds... (xmpCounter = 13406400)

I played two songs...

yagood

 :(

I don't know why it's not working, there seems to be some problem with libcurl (library which I use to do all networking stuff). All I can do right now is try to get more information about this error, so please try attached version and paste contents of the log.


BTW I see on your profile that you are listetning to music with other player (since xmp-scrobbler doesn't work) and that you have some songs cached from the past in xmp-scrobbler. Well, I'm afraid this cache file is going to be useless when we solve this problem and you'll be able to connect with XMPlay, because Last.fm doesn't accept submissions timestamped before what was already submitted properly...

adscvr

Well, no problem with the played song in the cache.

I will try this and paste the log tomorow because now i'm at home (i have this issue in the computer at work).

Thanks!!

adscvr

This is the output it shows:
2006-08-18 09:23:49 [DEBUG] DSP_New()
2006-08-18 09:24:20 [DEBUG] DSP_NewTrack (OPEN)
2006-08-18 09:24:20 [LIBSCROBBLER] Using proxy server: ca-proxy2.br.bosch.com:8080 (with authentication - user and password are set in options)
2006-08-18 09:24:20 [LIBSCROBBLER] ...
2006-08-18 09:24:20 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2006-08-18 09:24:20 [DEBUG] XMP_SetTimer( 500 )
2006-08-18 09:24:20 [DEBUG] XMP_KillTimer
2006-08-18 09:24:20 [INFO] Next submission in 240 seconds... (xmpCounter = 21168000)
2006-08-18 09:24:21 About to connect() to proxy ca-proxy2.br.bosch.com port 8080

2006-08-18 09:24:21   Trying 10.21.240.21...
2006-08-18 09:24:21 connected

2006-08-18 09:24:21 Connected to ca-proxy2.br.bosch.com (10.21.240.21) port 8080

2006-08-18 09:24:21 Server auth using Basic with user 'sl88bua'

2006-08-18 09:24:21 GET http://post.audioscrobbler.com/?hs=true&p=1.1&c=xmp&v=0.1&u=adscvr HTTP/1.1

Authorization: Basic c2w4OGJ1YTpwYXRvbG9jbzAw

User-Agent: Mozilla/5.0 (compatible; libscrobbler 1.4; xmp 0.1)

Host: post.audioscrobbler.com

Pragma: no-cache

Accept: */*

Proxy-Connection: Keep-Alive




2006-08-18 09:24:21 HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-18 09:24:21 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-18 09:24:21 [LIBSCROBBLER] The server reported a processing error.
2006-08-18 09:24:21 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-18 09:24:21 Via:1.1 CA-PROXY2


2006-08-18 09:24:21 [LIBSCROBBLER] Via:1.1 CA-PROXY2


2006-08-18 09:24:21 Proxy-Authenticate: NTLM


2006-08-18 09:24:21 [LIBSCROBBLER] Proxy-Authenticate: NTLM


2006-08-18 09:24:21 Proxy-Authenticate: Kerberos


2006-08-18 09:24:21 [LIBSCROBBLER] Proxy-Authenticate: Kerberos


2006-08-18 09:24:21 Proxy-Authenticate: Negotiate


2006-08-18 09:24:21 [LIBSCROBBLER] Proxy-Authenticate: Negotiate


2006-08-18 09:24:21 Pragma: no-cache


2006-08-18 09:24:21 [LIBSCROBBLER] Pragma: no-cache


2006-08-18 09:24:21 Cache-Control: no-cache


2006-08-18 09:24:21 [LIBSCROBBLER] Cache-Control: no-cache


2006-08-18 09:24:21 Content-Type: text/html


2006-08-18 09:24:21 [LIBSCROBBLER] Content-Type: text/html


2006-08-18 09:24:21 Content-Length: 2374 


2006-08-18 09:24:21 [LIBSCROBBLER] Content-Length: 2374 


2006-08-18 09:24:21 [LIBSCROBBLER]


2006-08-18 09:24:21 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>

<STYLE>A:link {

FONT: 8pt/11pt verdana; COLOR: #ff0000

}

A:visited {

FONT: 8pt/11pt verdana; COLOR: #4e4e4e

}

</STYLE>



<META content=NOINDEX name=ROBOTS>

<META http-equiv=Content-Type content="text-html; charset=Windows-1252">



<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>

<BODY bgColor=#ffffff>

<TABLE cellSpacing=5 cellPadding=3 width=410>

  <TBODY>

  <TR>

    <TD vAlign=center align=left width=360>

      <H1 style="FONT: 13pt/15pt verdana; COLOR: #000000"><!--Problem-->The page

      cannot be displayed</H1></TD></TR>

  <TR>

    <TD width=400 colSpan=2><FONT

      style="FONT: 8pt/11pt verdana; COLOR: #000000">There is a problem with the

      page you are trying to reach and it cannot be displayed.</FONT></TD></TR>

  <TR>

    <TD width=400 colSpan=2><FONT

      style="FONT: 8pt/11pt verdana; COLOR: #000000">

      <HR color=#c0c0c0 noShade>



      <P>Please try the following:</P>

      <UL>

        <LI>Click the Refresh button,

        or try again later.<BR>

        <LI>Open the Web site

         home page, and then look for links to the information you want.

        <LI>If you typed the page address in the Address bar, make sure that it

        is spelled correctly.<BR>

        <LI>Verify that the Internet access policy on your network allows you

        to view this this page.</LI>

        <LI>If you believe you should be able to view this directory or page,

        please contact the Web site administrator by using the e-mail address or

        phone number listed on the Web site

         home page. </LI></UL>

      <H2 style="FONT: 8pt/11pt verdana; COLOR: #000000">HTTP 407 Proxy Authentication Required - The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. (12209)<BR>Internet Security and Acceleration Server</H2>

      <HR color=#c0c0c0 noShade>



      <P>Technical Information (for support personnel)</P>

      <UL>

        <LI>Background:<BR>The gateway could not retrieve the requested page.<P></P></LI>

        <LI>ISA Server: ca-proxy2.br.bosch.com<BR>

        Via: <BR><BR>Time: 8/18/2006 12:24:21 PM GMT

        </LI></UL></FONT></TD></TR></TBODY></TABLE></BODY></HTML>


2006-08-18 09:24:21 Closing connection #0

2006-08-18 09:24:21 [LIBSCROBBLER] Unable to handshake: sleeping...

yagood

Thanks for that, now I have some more info to work with. I'll try to find a cause and fix it as soon possible... I'm sorry for inconvenience  ::)

adscvr

Quote from: yagoodThanks for that, now I have some more info to work with. I'll try to find a cause and fix it as soon possible... I'm sorry for inconvenience  ::)

No problem! Thank YOU!

yagood

I think I found the cause of this problem, it's a technical thing so I won't bore you with it. Bottom line is that it should be OK. Unfortunately I have another problem now and I can't build new version without fixing it, so please be patient, it shouldn't take long.

PS. If it's proxy at your workplace - will you be able to test it on weekend or on Monday?

yagood

OK, I managed to build new version for you - link. Try this and please report back with log contents. I hope it'll fix all problems with your proxy server.

adscvr

#211
Quote from: yagoodPS. If it's proxy at your workplace - will you be able to test it on weekend or on Monday?

On tuesday, because here we have a holiday on monday. I cannot wait to test it!! :D

Quote from: yagoodOK, I managed to build new version for you - link. Try this and please report back with log contents. I hope it'll fix all problems with your proxy server.

Thanks!! I will try it as soon as i can!!

adscvr

It didn't work... :'(

Something weird has happened: I closed xmplay but the log file kept growing in size. I checked the threads of the system and found that xmplay kept running. I didn't occur with the previous build of the plugin.

Attached is the log file.

Thanks!

yagood

 :o

There must be something wrong with this network library I'm using, it cannot handle your NTLM proxy properly, I'm going to have some chat with developers, maybe they can come up with something, maybe it's a bug in libcurl... Thanks for your report, I'll try to fix it as soon as possible.

yagood

OK, one more build to try, probably the last one. If this won't work, I'll need to find new way of doing network stuff...

adscvr

Quote from: yagoodOK, one more build to try, probably the last one. If this won't work, I'll need to find new way of doing network stuff...

It has the same date, time and size that the previous one. Is it really a new build? :o

adscvr

Quote from: yagoodHmm, yes, it's a new build. Try this link.

It didn't work... :(

yagood

#218
OK, thanks for testing, there's not much I can do as probably I'll need to rewrite some networking code and have no time for this right now, because of very important exam at the university coming in a week, so you'll have to be patient, sorry...

You can try using cache file - listen to music at work and then try to submit it at home just by copying xmp-scrobbler.cache.

adscvr