EBSCO no longer saving pdf
We have begun having trouble saving PDFs from EBSCO databases. The Zotero translator popup has a red X next to EBSCO full text. We've tried in Firefox and Chrome on two different Macs.
One example is trying to save this article: http://ezproxy2.library.drexel.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=aft&AN=119971946&site=ehost-live
The Debug ID is D1318108447.
Thanks.
Here's the Debug ID: D200493478
Here's another article, only this one goes to (I presume) an author's manuscript in an IR after the EBSCO download fails. http://ezproxy2.library.drexel.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=hjh&AN=112084194&site=ehost-live
Debug ID for this article is: D1572568445
It doesn't look like I have access to the databases you're trying this on on EBSCO. Could you try if the PDF downloads here?
http://ezproxy2.library.drexel.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=eric&AN=EJ1185070&site=ehost-live
http://ezproxy2.library.drexel.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=eric&AN=EJ1185127&site=ehost-live
URL is: http://web.a.ebscohost.com.ezproxy2.library.drexel.edu/ehost/detail/detail?vid=3&sid=18823dd9-9f12-404c-a79e-1b670301fca1@sdc-v-sessmgr06&bdata=JnNpdGU9ZWhvc3QtbGl2ZQ==#AN=EJ1185127&db=eric
@adomasven, the only thing I can think of is that it looks like we're saving the wrong URL to the URL field — we're saving the proxy login page. That happens for me as well and the file still saves, but it's possible that the Drexel proxy is more strict about the right referrer being used.
@milliken: If you click through to the PDF in the browser and then copy the URL to a new tab and try to load it there, does it work?
X EBSCO Full Text (in red). It does this with any PDF in EBSCO.
If someone's library wants to help us resolve this, they can reach out to support@zotero.org and provide us with a temporary test account for the proxy, and we should be able to fix it quickly.
Otherwise, @milliken (or anyone else), if you're still experiencing this and don't mind following some unusually technical troubleshooting steps, could you try the following? (This is vastly more complicated than usual Zotero debugging, and I apologize for that, but this is a particularly difficult problem to fix without access to an affected proxy.)
1) When viewing an article page in EBSCO, open the JavaScript Console in your browser (Cmd-Option-I in Chrome and Firefox) and switch to the Network tab.
2) View the PDF in your browser. You should see a bunch of lines in the Network tab. Look for one that starts with "ContentServer.asp". Right-click on that one and click Copy → Copy as cURL.
3a) If you're using macOS, open Terminal via Spotlight.
On Linux, open a terminal the normal way.
On Windows, if you have Cygwin, you can use that. Alternatively, you can use cmd.exe, but you'll need to download cURL for Windows, unzip it, and then drag bin\curl.exe to the command prompt window. Then press spacebar. When you then paste the command in the next step, there'll be an extra 'curl' at the beginning of the pasted content that you'll need to remove, since curl.exe is already there. You can use Ctrl + arrow keys to move quickly through the command line. (You can theoretically copy a PowerShell command from Chrome instead if you know what you're doing, but I don't know the details of that.)
3b) In your terminal or command prompt, paste in the command. You'll see something like this:
curl 'http://content.ebscohost.com.ezproxy2.library.drexel.edu/ContentServer.asp?T=P…' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.9' -H 'Cookie: ezproxy=abcdefg' -H 'If-Modified-Since: Wed, 28 Nov 2018 17:42:25 GMT' --compressed
To explain, this is a command that performs web requests ('curl'), a URL ('http://content.ebscohost.com…'), and a series of "headers" that are sent with web requests (
-H 'Cookie: ezproxy=…'
). The goal here is to figure out which headers are necessary for the PDF request to work through your proxy. For us, only the Cookie header is necessary.4) Delete from the end of the line until you get to the end of the "Cookie" header, making sure you leave the single quote at the end of it. (In other words, remove
-H 'If-Modified-Since: … GMT'
and--compressed
.) Then add| grep -E '%PDF|H1'
to the end of the line. (That vertical line is a pipe character — i.e., shift-backslash.) You should see something like this:curl 'http://content.ebscohost.com.ezproxy2.library.drexel.edu/ContentServer.asp?T=P…' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.9' -H 'Cookie: ezproxy=abcdefgh' | grep -E '%PDF|H1'
If you then press Return, you should see either "Binary file (standard input) matches" (which means it was able to access the PDF) or "<H1>404 Not found</H1>" (which means it wasn't). If it says "404 Not found" already or the command doesn't return anything, stop there and let us know.
5) Try removing additional headers —
-H
and the entry after it — until it stops saying "Binary file (standard input) matches", leaving in-H 'Cookie: ezproxy=…'
(since it definitely won't work without that one). Make a note of which header you're removing. Again, the goal is to figure out which header you have to remove for this to stop downloading the PDF and start saying "Not found".Thanks in advance to anyone who can try this, and let us know if you have trouble following the steps. If this ends up being too complicated, there are other ways we can debug this, but they'd take a while longer.
Zotero 5.0.60 on Windows 10
Zotero Connector is v.5.0.53
Zotero is open in Windows.
Logged into EBSCO through my school library. I click the PDF Full Text link and the PDF opens in the built-in Viewer. Zotero Connector displays the PDF icon. When I click it, it spins and then displays an X. When I click the X, is says "saving failed. Is Zotero running?" it is.
Submitted Debug ID:
D1513269839
I'm pretty sure this used to work for me.