arkq / cmusfm

Last.fm standalone scrobbler for the cmus music player
GNU General Public License v3.0
232 stars 5 forks source link

Invalid method signature supplied (error code 13) #34

Closed laMudri closed 4 years ago

laMudri commented 4 years ago

cmusfm stopped scrobbling for me a few days ago, without any apparent change to my configuration. In trying to diagnose the problem, I've found that cmusfm init always produces:

Checking previous session (user: la_mudri) ...failed.
Fetch new session key [yes/NO]:

I've tried a few times to get a new key, but the new key does not help.

With debugging turned on, I see this from cmusfm init:

Checking previous session (user: la_mudri) ...DEBUG libscrobbler2.c:327: Session validation wrapper
DEBUG libscrobbler2.c:289: Now playing: 0
DEBUG libscrobbler2.c:290: Payload:  - (null) ((null)) - 0.  (0s)
DEBUG libscrobbler2.c:163: Signature data: api_key67082e45dab1f6433da72a00e3bc037aartistmethodtrack.updateNowPlayingsky56gjxMqYmDKrDS58p0v8MdU_jn8Qpditrack
DEBUG libscrobbler2.c:198: Params: api_key=67082e45dab1f6433da72a00e3bc037a&artist=(null)&method=track.updateNowPlaying&sk=y56gjxMqYmDKrDS58p0v8MdU_jn8Qpdi&track=(null)&api_sig=4354ae255b70ed381177dfea556681ed
DEBUG libscrobbler2.c:57: Read: size: 129, body: <?xml version="1.0" encoding="UTF-8"?>
<lfm status="failed">
  <error code="13">Invalid method signature supplied</error>
</lfm>

DEBUG libscrobbler2.c:114: Check: status: 0, body: <?xml version="1.0" encoding="UTF-8"?>
<lfm status="failed">
  <error code="13">Invalid method signature supplied</error>
</lfm>

DEBUG libscrobbler2.c:309: Now playing status: 3
failed.
Fetch new session key [yes/NO]:
arkq commented 4 years ago

Indeed something has changes within scrobbling API, I will check that.

arkq commented 4 years ago

This issue is caused by libcurl bug: https://github.com/curl/curl/issues/5601

Please, upgrade or downgrade libcurl library, anything but libcurl-7.71.0 :).

laMudri commented 4 years ago

Yep, can confirm that curl version 7.71.1 is working. 😁