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
Can't add author or book because Sequence contains more than one matching element #2153
Comments
Hi, Goodread themselves does not display the Books without link to the work. |
I'm running into this same issue trying to add both J.D. Salinger and J.R.R. Tolkien, or any of their books. I see you submitted a PR with a potential fix @RudyBzhBzh , thanks! How do we get someone to review it? 🤔 |
I'm seeing the same issue with the book |
Don’t know 🤷♂️ |
I'm not sure this is really the right fix, it's just covering up an upstream error that needs fixing there. Some specific test cases (along with the Goodreads IDs for them) will help me narrow it down. |
Of course, the error is somewhere else : goodreads or bookinfo… but I don’t think it’s something others can look at, right ? also these ones I saw on discord : And what « test case » do you want ? Thanks. |
@ta264 |
If you can make a SQL request to bookinfo, just try something like "select * from Books where ForeignWorkId is null"... |
Here are some more examples. I don't find any issue for JD Salinger... But there are 3 duplicates for Tolkien. "ForeignId":30235419,"ForeignWorkId":50696770 "ForeignId":58371246,"ForeignWorkId":91541368 "ForeignId":34806310,"ForeignWorkId":95260436 In a database point of view, "ForeignId is the "primary key" and must be unique (here we have duplicates...), whereas "ForeignWorkId is a "Foreign key" and must NOT be null, if it is, it means an orphan record... (no reference to a parent) Hoppefully this will help. My PR is not the best way to do, but I think it's working (at least to let time to others to dig for issues on infobook side...) |
@ta264 : Do I gave you enough elements to narrow it down ? |
I believe this has been fixed upstream and we are just waiting on all the caches to get refreshed (which could take a number of days). I'm reluctant to patch Readarr itself to work around it as then we wouldn't see that the upstream has issues. |
In particular the tolkien case should have been fixed up |
Running into a similar issue Event logEvent title:
Message
Exception
|
|
Is there an existing issue for this?
Current Behavior
When adding this author or by book, it's failing with a sequence error shown. This only happens on specific authors/books, and I think it's because the metadata has a clash that I can't determine.
https://api.bookinfo.club/v1/author/348641
https://api.bookinfo.club/v1/book/648086
Both of those throw a 503 in the trace logs, but both appear valid JSON in a browser.
Gist of logs: https://gist.github.com/PearsonFlyer/1b0ea60d637295ddfe3245ec156fa68a
Expected Behavior
Allow the addition of this book or author.
Steps To Reproduce
In Readarr (v0.1.2.1532 docker, and 0.1.2.1544 Windows)
Add
edition:648086
orAgnes Savill
and they return with "no results found", throwing the errors into logs.Environment
What branch are you running?
Nightly
Trace Logs?
https://gist.github.com/PearsonFlyer/1b0ea60d637295ddfe3245ec156fa68a
AB#4803
The text was updated successfully, but these errors were encountered: