-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Most of the time "FETCH BOOK" does nothing at all #130
Comments
Spammed tons of different ISBNs until one finally worked again. It was the one in the above text. That one failed literally dozens of times and now finally did something. When it succeeded I had a 1.26KB POST request to the aforementioned API endpoint. So I don't know why most of the time an empty POST request is being sent. |
Now it's pretty consistently going…for the moment… |
This is a known problem, the tool used to fetch metadata is severely rate limited by google. See #59
Are you sure an empty POST is sent or is it rather that the request is not empty, bu the backend timeouts calling the metadata fetcher tool and then returns an empty response to the frontend ? When I have some time I'll add other metadata sources to not have to rely on this tool. You can already use the google books api as a metadata source and not have this problem. |
I see. Noted.
I guess the problem is the request never times out ever, so it just reads as 0 bytes? Dunno.
Is it possible to configure this via environment variables instead of a YAML config file? |
It should be possible. Jelu uses spring boot config format so any config can be passed through env vars. Since configuring plugins in jelu works with lists I found an explanation, you can try it : see first answer here : tldr :
becomes in env vars :
|
Awesome! Thanks. :-) I'll close this one out since #59 already exists anyway. |
Environment:
Reproduction:
/add-book
🪄 AUTO FILL
Isbn
field, e.g.9781250186928
FETCH BOOK
Most of the time: nothing happens except a spinning circle and a green bar moving. Only once have I had this succeed on dozens and dozens of attempts with different ISBNs.
When performing Step 4, I see a 0 byte
POST
request is made to/api/v1/metadata
and nothing at all appears in thejelu.log
file nor indocker logs jelu
.The one time it succeeded, I did see a log entry like:
Unfortunately, I didn't catch what the POST request looked like in my browser console that time.
If I manually run something like
docker exec -it jelu /calibre/fetch-ebook-metadata -i 9781250186928
I can see an output almost immediately.The text was updated successfully, but these errors were encountered: