-
Notifications
You must be signed in to change notification settings - Fork 91
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
Create new book fails: "Creation failed, book may already exist!" #186
Comments
That author’s record did not exist, though there were two records for them without the umlauts. |
Ok, then maybe I don't understand the process of creating a new book using the client. |
I’m not sure if the client is able to create new authors yet. It doesn’t look like it to me. I raised an issue. |
Ok. Another question(though not related to this issue), How do I get the One example,
With Work Looking at https://openlibrary.org/works/OL888738W.json gives nothing, but from https://openlibrary.org/works/OL888738W I find there are two Editions. |
The doc at https://github.com/internetarchive/openlibrary-client#command-line-tool would seem to suggest trying: |
Yes, but the required This would work
But I do not know how to get one of the |
Perhaps the command line tool just does not yet support that part of the API. The python library suggests that it someday could: |
Oh, @LeadSongDog, I am sorry. You are totally right. I removed my previous comment, which was wrong. Thank you for replying.
or using the web, https://openlibrary.org/works/OL888738W.json or directly from ISBN(different book) |
This is still an issue, and looks like it affects all command line From adding some more debugging to the client I see that the exact error from OL is:
I think that possibly there have been some changes to the /books/add endpoint around authors resolving to their OLIDs that may have broken this. The error isn't limited to the CLI interface, |
where i | <Storage {'debug': 'true', 'id_name': 'isbn_10', 'author_key': 'new', 'author_name': 'Jürg Von Känel', 'publisher': 'Filidor, Schweiz', 'id_value': '3906087034', 'title': 'Schweiz Plaisir', 'publish_date': '1993', '_save': '', 'web_book_url': '', '_test': 'false'}> The current code is expecting an Looks like this changed in this commit, and has been broken for a loooong time: internetarchive/openlibrary@4e489c4 I'd be inclined to scrap the /books/add endpoint and use the more current api method https://github.com/internetarchive/openlibrary/wiki/Endpoints#data-import |
Creating a new book fails. As an example, take this guide book for rock climbing. The book exist on amazon,
https://www.amazon.it/Schweiz-Plaisir-sch%C3%B6nsten-Klettereien-Niveau-4a-6a/dp/3906087034
returns
Looking at https://openlibrary.org/api/books?bibkeys=ISBN:3906087034&jscmd=data&format=json, we see the book does not exist. Same for google books,
https://www.googleapis.com/books/v1/volumes?q=isbn:3906087034&fields=items/volumeInfo(title,subtitle,authors,publisher,publishedDate,language,industryIdentifiers,pageCount,imageLinks.thumbnail,categories)&maxResults=1
I am using the latest git version. But I get same response using the version from pip.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: