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

/mlj_1/newscrobble ignores import error #297

Closed
phw opened this issue Nov 15, 2023 · 2 comments
Closed

/mlj_1/newscrobble ignores import error #297

phw opened this issue Nov 15, 2023 · 2 comments

Comments

@phw
Copy link

phw commented Nov 15, 2023

I ran a longer list of locally stored scrobbles over the /mlj_1/newscrobble API endpoint for submission. I noticed not all of them had been imported, a few were missing. The maloja logs shows the following error message a couple of times:

1 Scrobbles have not been written to database!

The exact error reason is unknown, but the log message originates from https://github.com/krateng/maloja/blob/master/maloja/database/sqldb.py. But the newscrobble request sent a success status anyway. If it would have failed then the submission client could have detected and handled that case. But so it must assume everything was submitted successfully.

I think the call to sqldb.add_scrobble at

sqldb.add_scrobble(scrobbledict,update_album=albumupdate,dbconn=dbconn)
must check for errors and adjust the response accordingly.

@krateng
Copy link
Owner

krateng commented Dec 28, 2023

This should now return an error.

@FoxxMD
Copy link
Contributor

FoxxMD commented Aug 26, 2024

@krateng could I persuade you to release v.3.2.3 with this fix in it? It's causing issues in multi-scrobbler that in 3.2.2 this is still just a warning rather than a full 409 response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants