I get the following error when searching for an isbn within the open library:

Warning: file_get_contents(http://openlibrary.org/api/books?bibkeys=ISBN:0385074077&jscmd=data&format=json) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in _isbn2book_fetch_data() (Zeile 37 von ~/sites/all/modules/ISBN2node/isbn2node.internal.inc)

First I thought my provider might have turned off allow_url_fopen, but I checked and it is on, so I am a little clueless on what might be wrong.

Comments

vertikal.dk’s picture

Status: Active » Closed (works as designed)

Zuzuesque,

This seems to come from a temporary lack of access to openlibrary.org. The link in the error message responds fine now with the relevant data, and the issue is probably with openlibrary.org and not in the module.

I might consider a more elegant handling of such errors, but will close this issue for now.

Martin

Zuzuesque’s picture

Thanks for the heads up.

I played around with the api as well and since I got openlibrary to respond, I figured it might be a problem with the module. Just tested it again some minutes ago and it is still not working for me? It might just be a problem on my end however, if it is still working correctly for you.