# Get BibTeX info from DOI failing

**URL:** <https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647>\
**Category:** Help\
**Created:** [May 31, 2017, 8:34pm UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647 "2017-05-31T20:34:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![msemple](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@msemple](https://discourse.jabref.org/u/msemple)\
**Post date:** [May 31, 2017, 8:34pm UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647/1 "2017-05-31T20:34:05Z")

</div>

Hello,

When I attempt to get BibTeX data from a DOI I get a response code 406, which, according to CrossCite, means “406 Can’t serve any requested content type.”

Any ideas why this might be happening?

Thanks!

---

<div class="post-metadata">

**Author:** ![glennib](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@glennib](https://discourse.jabref.org/u/glennib)\
**Post date:** [June 1, 2017, 9:11am UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647/2 "2017-06-01T09:11:03Z")

</div>

I have a similar issue on Windows: After trying to add a new entry by selecting ID type DOI and ID (paste DOI here, have tried multiple, even ones that worked in the past), I get the message: “Error while fetching from DOI. Invalid URL”.

Edit: Version is

```
JabRef 3.8.2
windows 7 6.1 amd64 
Java 1.8.0_121
```

---

<div class="post-metadata">

**Author:** ![glennib](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@glennib](https://discourse.jabref.org/u/glennib)\
**Post date:** [June 1, 2017, 9:22am UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647/3 "2017-06-01T09:22:35Z")

</div>

I have opened an issue on github: [https://github.com/JabRef/jabref/issues/2879](https://github.com/JabRef/jabref/issues/2879)

---

<div class="post-metadata">

**Author:** ![JeanLouis](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/jeanlouis/32/545_2.png) [@JeanLouis](https://discourse.jabref.org/u/JeanLouis)\
**Post date:** [April 5, 2019, 6:05am UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647/4 "2019-04-05T06:05:21Z")

</div>

On a similar note, it seems that the link with crossref may be broken. Cannot fetch bibtex info based on the doi, e.g. 10.1016/j.enpol.2019.03.001 returns nothing (“Cannot get info based on given doi”) while [https://search.crossref.org/?q=10.1016%2Fj.enpol.2019.03.001](https://search.crossref.org/?q=10.1016%2Fj.enpol.2019.03.001) finds it easily. The crossref web search from JabRef returns a bunch of articles but not the actual one. Has the API Changed or anything else?

JabRef 4.3.1  
Windows 10 10.0 x86  
Java 1.8.0\_201

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [April 5, 2019, 2:01pm UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647/5 "2019-04-05T14:01:04Z")

</div>

Hi,

this is odd. JabRef queries [doi.org](http://doi.org) for the given doi and at least the online website gives a result.  
Have you entered the DOI via New Entry -\> DOI or you could alternatively paste the doi on the maintable.

Regards

---

<div class="post-metadata">

**Author:** ![JeanLouis](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/jeanlouis/32/545_2.png) [@JeanLouis](https://discourse.jabref.org/u/JeanLouis)\
**Post date:** [April 8, 2019, 6:27am UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647/6 "2019-04-08T06:27:37Z")

</div>

Hi,  
It originally failed returning any result while importing new articles in the database. I then tried using the get bibtex info from the entry itself which did not return any results. Using a new entry returns “Fetcher doi did not find an entry for id ‘10.1016/j.enpol.2019.03.001’”.  
In general, it does not find any bibtex info on all recent articles that I am uploading in my database (all referenced in crossref so I can find them all online). But looking at some older articles I have, the bibtex info are extracted from crossref. I am not sure what can it be related to.

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [April 9, 2019, 10:25am UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647/7 "2019-04-09T10:25:35Z")

</div>

Hi,

using the latest development version, it works fine for me.  
As the Article seems to be relatively new, I guess it may need take some time until the DOI link is visible/working.

Please try the latest development version. Remember to make a backup of your database.  
[https://builds.jabref.org/master/](https://builds.jabref.org/master/)

---

<div class="post-metadata">

**Author:** ![JeanLouis](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/jeanlouis/32/545_2.png) [@JeanLouis](https://discourse.jabref.org/u/JeanLouis)\
**Post date:** [April 10, 2019, 4:39am UTC](https://discourse.jabref.org/t/get-bibtex-info-from-doi-failing/647/8 "2019-04-10T04:39:17Z")

</div>

Hi,  
Yes that might have been the issue, all the bunch of recent articles I was importing worked to fetch the bibtex info from the doi as of today (about 2 weeks delay). I am a little bit surprised as I have been keeping my database updated for a while even for (very) recent articles and never ran into that issue so far.  
Thanks for taking the time!
