- Issue created by @lifelifeone
As a matter of fact, the error is triggered because the Calameo API is unable to return any book information. The response is a 200 but contains following information :
"response" => [ "status" => "error" "version" => 2 "requestid" => "t7scjv" "requests" => 9 "error" => [ "code" => 501 "message" => "Unknown book" ] ]
(see here for full list of error codes: https://developer.calameo.com/content/api/#errorcodes)
It makes sense that Calameo::getMetadata() method returns an error message since `$data['response']['error']` is not empty.
What I'd suggest, though, would be to change the level of the user-returned message to "Warning" since these errors do not prevent the media from being created. I think it could result in a better user experience.
Any thoughts?
- 🇫🇷France anfor
Hi @misterdidi, thank you for your feedback.
The error message type seems logical to me, since we can't base it on the error level in the Calameo API.
Some publishers will argue that a missing book for a valid API key is actually a significant problem.Nonetheless, I updated the error message to include the API page you mentioned.
Do you have the exact same issue with latest release 1.0.5 ?