I am having an issue connecting to the NCBI entrez eutils service. All my requests give the error message:
"error":"error forwarding request","api-key":"xxxxxxxxxx","type":"api-key", "status":"ok"
I am using the GET method to get the content of the url request. The thing is that my url requests where working fine the day before and I did not change anything in my code.
Would this be an issue with the NCBI website or something on my end? I do not know how or where to check the status of their serivces.
Edit by GenoMax: Redacted NCBI api-key posted in the question.
I guess it is the issue with the website as I am getting the same message when I tried 5 mins ago.
This is definitely a problem on NCBI's end. While it is likely to get corrected please put a ticket in using the support center.
Hi, do you know how to solve this problem? My website doesn't work now.
NCBI needs to fix whatever the problem is on their end. So please put a support ticket in at NCBI Help desk at link I posted above.
Not working again: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&id=KJ567057&rettype=gb&retmode=text
FYI, I am using Pubmed API for years now and today I got the same error. Found this post by googling the error, so maybe it's a problem on Pubmed's end?
ditto, had this issue with NIH Federal Reporter before, had to write several emails and it took a week to fix.
It might be the entire eutils serveice which are down, I'm developping some entrez-direct code into a pipeline, so first I suspected me being blocked for making a mistake (an esearch run with ~10 queries).
In terminal i receive a long
500 Internal Server Error
, while in browser i receive aI get exactly the same error just from using a single query, so I think you may be right about eutils
I'm having this problem too. Definitely wasn't happening yesterday evening. I'm guessing the problem is with Pubmed.
In addition, I checked their ftp, there doesn't seem to be any new releases this month, so wouldn't expect it to be version-related.
the same situation happened to my website!!!!!!!!!!!!!!!!!!!
Seven weeks later, and this problem still lingers?! I get the same erroneous response on roughly 20% of my 'Identical Proteins' Efetch queries - the same ones every time. Did anybody find a workaround, or are we still waiting for NCBI to fix it? Is there an open ticket at NCBI, or any other estimate on when this will be resolved?
This may be a very specific issue in your case. If you are doing a large number of queries build in some wait using
sleep
. I tried a small query and there was no problem getting a response.It's a problem with specific proteins, regardless of the order or timing of requests. And it's on the "sequence level" (I'm looking for identical proteins), as many alternate accessions for the same protein sequence will yield the same failed result.
Example protein identified by these accessions: PAY79320.1, AAL22298.1, ESB76257.1, RIH13185.1, KXA03582.1 Enter any of these in the following Efetch query to see it fail: https://www.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=protein&id=PAY79320.1&rettype=ipg&retmode=text&api_key=<insert-api-key-here>
Since you are querying
ipg
(Identical Protein Group) database you are getting a representative protein sequence as denoted byWP
accession. It represents multiple species.If you were to query protein database with same accession numbers you will get different sequences (edit: sequence is not different but the headers are so these are from two different organisms) for each accession
You should get identical sequences regardless of which of the accessions used. This is also what you are getting from your example, despite claiming to show the opposite?
The real problem, however, is that the Efetch queries fail on certain protein sequences - and on all accessions denoting that sequence.
If you noticed the fasta headers in case of protein database searches they are different as compared to IPG searches. I have clarified that in my comment above.
Searches using Entrezdirect did not fail for me as shown by examples above.
What I'm interested in retrieving are the IPG reports on identical proteins, hence my "&rettype=ipg" in the original failing URL. Using your suggested Eutils command line tools (under CygWin on Windows), this would then be: esearch -db protein -query "PAY79320.1" | efetch -format ipg , which gives me the similar kind of error:
curl: (22) The requested URL returned error: 500 Internal Server Error ERROR: curl command failed ( Wed, Jan 27, 2021 11:03:06 ) with: 22 https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi -d query_key=1&WebEnv= MCID_601139ed155d522b5b101eaf&retstart=0&retmax=1&db=protein&rettype=ipg&retmode =text&tool=edirect&edirect=14.5&edirect_os=CYGWIN_NT&email=<redacted> ERROR: FAILURE ( Wed, Jan 27, 2021 11:02:55 ) nquire -url https://eutils.ncbi.nlm.nih.gov/entrez/eutils/ efetch.fcgi -query_key 1 -WebEnv MCID_601139ed155d522b5b101eaf -retstart 0 -retmax 1 -db protein -rettype ipg -retmode text -tool edirect -edirect 14.5 -edirect_os CYGWIN_NT -email <redacted> EMPTY RESULT
If I try your suggestion to retrieve the FASTA sequence (which was not my original intent, but just to compare), I get similar kind of errors in 1-4 retries (automatic retries conducted by Curl), and a result is returned in roughly half of the cases?
It seems to be tied to Efetch only, as the first Esearch command gives the correct result every time: esearch -db protein -query "PAY79320.1"