Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent update? #74

Closed
Sbozzolo opened this issue May 6, 2021 · 6 comments
Closed

Recent update? #74

Sbozzolo opened this issue May 6, 2021 · 6 comments

Comments

@Sbozzolo
Copy link

Sbozzolo commented May 6, 2021

Recently, bibslurp stopped working (mkmcc/bibslurp#12 (comment)). I suspect that something changed in the APIs. I think that the following used to work:

curl -d "bibcode=2010PhRvD..82j4014W" -H 'Authorization: Bearer MY_TOKEN' 'https://api.adsabs.harvard.edu/v1/export/bibtex'

but now it doesn't anymore and I need to send the data as '-d {"bibcode":"2010PhRvD..82j4014W"}.

I cannot find any announcement about any change. Has there been any change on the server side?

@csgrant00
Copy link

csgrant00 commented May 6, 2021 via email

@Sbozzolo
Copy link
Author

Sbozzolo commented May 6, 2021

I would like to understand why bibslurp stopped working and I can prevent it from breaking again in the future. What we are doing in bibslurp is what I reported in the first message. I suspect that there has been a recent server-side change and now what we are doing in bibslurp is not allowed anymore. Is this the case?

@golnazads
Copy link

export service has not changed, still support both POST and GET. For POST it expects a list of bibcodes, for GET the bibcode is inserted at the end of url. So this works
curl -H 'Authorization: Bearer token' 'https://api.adsabs.harvard.edu/v1/export/bibtex/2010PhRvD..82j4014W'
sorry I have no explanation how the command you are specifying worked.

@Sbozzolo
Copy link
Author

Sbozzolo commented May 6, 2021

Thanks, with your comments I updated bibslurp so that it works again. I realized that we were using the APIs incorrectly and bibslurp should not have worked in the first place (but it has been working fine for two years!). I cannot think of any other explanation for why it stopped working except that something changed server-side. (I cannot say how recently the package stopped working, it could have been in the past 2/3 months maybe?).

I guess this issue is solved. Thanks!

@Sbozzolo Sbozzolo closed this as completed May 6, 2021
@golnazads
Copy link

golnazads commented May 6, 2021 via email

@Knusper
Copy link

Knusper commented May 29, 2021

@golnazads that is consistent with when bibslurp stopped working... mystery solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants