Closed (works as designed)
Project:
ISBN2node
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2011 at 12:52 UTC
Updated:
10 Oct 2011 at 08:07 UTC
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
Comment #1
vertikal.dk commentedZuzuesque,
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
Comment #2
Zuzuesque commentedThanks 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.