w3slley / bookcover-api

📚 Simple API for retrieving book covers from the web
https://bookcover.longitood.com
102 stars 13 forks source link

Returns "Initial pattern not found" #24

Open sarabsethi opened 3 months ago

sarabsethi commented 3 months ago

Hi,

First, very cool tool thanks for sharing!

I had some luck playing with it earlier today, but now get a "{"error":"Initial pattern not found"}" return for any request I try, including the example in the readme.

Am I doing something wrong, or is the service down?

Cheers! Sarab

jamesflores commented 3 months ago

I got this too. It might be restricted. See my gist where I roll my own here: https://gist.github.com/jamesflores/85e9777d5ca076b2d29312a31754003e

sarabsethi commented 3 months ago

Ah nice, thanks. There's some magic in the original API which seems to give better results but I'll dig into it a bit further and see if I can use a hybrid solution

w3slley commented 3 months ago

Hey @sarabsethi. Maybe I can improve the error handling so that it's clearer as to what's happening. I'll also update the README with more details on how the API retrieves the images (it literally performs a google search for the book title and author name for the first Goodreads link and gets the image from the HTML Goodreads returns, nothing fancy). Either way, getting this error means something went wrong with the search. I tried calling the sample request and it seems to be working now. Please let me know if it's still not working for you.

himanshubanerji commented 2 months ago

Getting the same issue here as well, this was working file few hours ago, not sure what broke it