简体   繁体   中英

lastfm api, 'ignorecode = 1' on return of attempted scrobble

I have tried scrobbling to my account on last.fm using three different methods and have come across the same error each time. All the information including auth information was provided yet the call to scrobble to my account still failed.. What is going on?! How can I fix this error and begin seeing accepted meta-data?

I am using Javascript, but an explanation of why this is happening and how I can fix the problem on a more abstract level is much appreciated as well! Thanks!

 Success: {"scrobbles":{ "@attr":{ "accepted":0,"ignored":1 },"scrobble":{ "artist":{ "corrected":"0","#text":"AOA" },"ignoredMessage":{ "code":"1","#text":"" },"albumArtist":{ "corrected":"0","#text":"" },"timestamp":"1468573491638","album":{ "corrected":"0" },"track":{ "corrected":"0","#text":"Good Luck" }}}} 

The problem was that my timestamp was in miliseconds and not seconds.

it was just Date.now() instead of Math.floor(Date.now() / 1000) .

Cheers!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM