Closed (fixed)
Project:
Bibliography Module
Version:
7.x-1.0-rc7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2014 at 18:08 UTC
Updated:
23 Jul 2015 at 08:10 UTC
Jump to comment: Most recent
Comments
Comment #1
kevinsullivan commentedI debugged the problem.
In the Biblio file, ...site/all/modules/biblio/modules/crossref/biblio.crossref.client.php, in the function called fetch, you have to make the following change:
FROM: $request_options = array('method' => 'POST');
TO: $request_options = array('method' => 'GET');
It should have been GET in the first place, I suppose; but it seems that POST had been working, as well.
The problem is that the crossref.org server is now throwing a Java exception when you present it with a POST request at this URL, thus producing the 400 server error.
Kevin Sullivan
Comment #2
wescleyteixeira commentedHi kevinsullivan,
It worked, now the website is working fine!
Thanks for explain about the changes in crossref.org too.
Best Regard!!
Comment #3
rjerome commentedI've committed that change. Thanks Kevin for tracking it down.
Comment #4
rjerome commentedComment #6
schillij commentedI made the change suggested by kevinsullivan in #1 and still get the same error message.
"HTTP error: 400 when trying to contact crossref.org for XML input"
Any other suggestions to correct this issue?
Jeff
Comment #7
Jujubre commentedI got the same issue, #1 solved it.
The queried url can be retrieved for testing in you browser by adding a line in fetch():
Comment #8
gchalker@princeton.edu commentedKudos to KevinSullivan! Worked like a charm.
Comment #9
alan d. commentedSlightly clearer fix, for a cleaner easier read code base. Albeit I am not reopening for this simple style fix.
From
To
Reference: http://cgit.drupalcode.org/biblio/commit/?id=fd8ee42
Comment #10
Mark F commentedStill getting this issue on rc7 and -dev (todays date - tried both). Made all of the changes above in both. Still got same error. Using ' 10.1056/NEJMoa1402454' as the DOI.
Comment #11
bib_boy commented#1 worked for me...POST -> GET
thanks!