> In the past days of running VacuumBot, I've encountered errors like this:
> Bad Request: {"message": "expected /type/author, found
> /type/redirect", "at": {"property": "authors", "key":
> "/books/OL21880872M"}, "value": "/authors/OL4472901A", "error":
> "bad_data"}

It means the save_many can't accept /authors/OL4472901A as an author because it 
is of type /type/redirect. 

That author is marked as redirect without updating the edition records 
referring to it. 

The way to fix it is by find the new author record it is pointing and 
substituting with it.

$ curl http://openlibrary.org/authors/OL4472901A.yml
key: /authors/OL4472901A
location: /authors/OL499507A
type:
    key: /type/redirect
...

So you can substitute it with /authors/OL499507A.

Or it is even fine to remove the authors field in the editions. We are not 
using the authors filed in editions any more. Only the authors field in works 
is used.

Anand
_______________________________________________
Ol-tech mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
To unsubscribe from this mailing list, send email to 
[email protected]

Reply via email to