Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listenbrainz Scrobbling - Cannot parse 'get-listens' #262

Closed
Maxmystere opened this issue Sep 22, 2022 · 6 comments
Closed

listenbrainz Scrobbling - Cannot parse 'get-listens' #262

Maxmystere opened this issue Sep 22, 2022 · 6 comments
Labels

Comments

@Maxmystere
Copy link

Hello I recently checked my server logs and fell on a bunch of logs like this

[2022-Sep-22 19:47:17.632] 1 - [error] - [SCROBBLING] [listenbrainz] - Cannot parse 'get-listens' result: Type error: value is Null, expected String
[2022-Sep-22 19:47:27.467] 1 - [info] - [SCROBBLING] [listenbrainz] - Feedback sync done for user 'Maxmystere', fetched: 128, matched: 0, imported: 52
[2022-Sep-22 19:47:30.170] 1 - [error] - [SCROBBLING] [listenbrainz] - Cannot parse 'get-listens' result: Type error: value is Null, expected String
[2022-Sep-22 19:47:31.523] 1 - [error] - [SCROBBLING] [listenbrainz] - Cannot parse 'get-listens' result: Type error: value is Null, expected String
...
x34
...
[2022-Sep-22 19:48:41.883] 1 - [error] - [SCROBBLING] [listenbrainz] - Cannot parse 'get-listens' result: Type error: value is Null, expected String
[2022-Sep-22 19:48:43.213] 1 - [error] - [SCROBBLING] [listenbrainz] - Cannot parse 'get-listens' result: Type error: value is Null, expected String
[2022-Sep-22 19:48:43.252] 1 - [info] - [SCROBBLING] [listenbrainz] - Sync done for user 'Maxmystere', fetched: 1001, matched: 893, imported: 137

Just wanted to know if I had some issues on my configuration or it is just lot of logs

@epoupon
Copy link
Owner

epoupon commented Sep 22, 2022

Could you please switch to debug level for logs (log-config="*"; in lms.conf file) and paste one of the http request URL that triggers this error?

@Maxmystere
Copy link
Author

From reading the source code it should be https://api.listenbrainz.org/1/user/Maxmystere/listens but i'll confirm it

@Maxmystere
Copy link
Author

Just did the switch (I'm running docker so I edited the file directly in it (previously was log-config = "* -debug -info:WebRequest";)
And the logs doesn't seem to have change after restarting the docker

@epoupon
Copy link
Owner

epoupon commented Sep 26, 2022

Ok I think I have found the problem. Could you by chance test the epoupon/lms:ff63ad6 image?

@Maxmystere
Copy link
Author

Maxmystere commented Sep 26, 2022

I can't manage to manually trigger the listenbrainz update but I recently got this logs so it all seems good !

[2022-Sep-26 20:46:54.367] 1 - [info] - [SCROBBLING] [listenbrainz] - Feedback sync done for user 'Maxmystere', fetched: 0, matched: 0, imported: 0
[2022-Sep-26 20:47:42.029] 1 - [info] - [SCROBBLING] [listenbrainz] - Sync done for user 'Maxmystere', fetched: 0, matched: 0, imported: 0
[2022-Sep-26 21:46:54.689] 1 - [info] - [SCROBBLING] [listenbrainz] - Feedback sync done for user 'Maxmystere', fetched: 0, matched: 0, imported: 0
[2022-Sep-26 21:47:43.246] 1 - [info] - [SCROBBLING] [listenbrainz] - Sync done for user 'Maxmystere', fetched: 0, matched: 0, imported: 0

@epoupon
Copy link
Owner

epoupon commented Sep 27, 2022

Ah, the full update is done during startup, then it only checks periodically if new listens appear on the server (for example if you listen to music with another service)

@epoupon epoupon closed this as completed Oct 2, 2022
@epoupon epoupon added the bug label Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants