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

502 error getting pubtator results for doc 10364520 #212

Open
andrewsu opened this issue Jan 25, 2017 · 3 comments
Open

502 error getting pubtator results for doc 10364520 #212

andrewsu opened this issue Jan 25, 2017 · 3 comments
Labels

Comments

@andrewsu
Copy link
Member

https://mark2cure.org/document/pubtator/10364520.json reproducibly returns a 502 error

Other valid doc requests (eg https://mark2cure.org/document/pubtator/16344560.json) return just fine. Bad doc IDs (eg https://mark2cure.org/document/pubtator/1.json https://mark2cure.org/document/pubtator/ABC.json) correctly returning 404.

@andrewsu andrewsu added the bug label Jan 25, 2017
@gtsueng
Copy link
Collaborator

gtsueng commented Jan 25, 2017

This might be more on pubtator's end? The browser version of pubtator doesn't show any annotations for this abstract.
no annotations

@andrewsu
Copy link
Member Author

Great point. Pubtator API indeed does not have any annotations for this document:

https://www.ncbi.nlm.nih.gov/CBBresearch/Lu/Demo/RESTful/tmTool.cgi/Chemical/10364520/JSON/
https://www.ncbi.nlm.nih.gov/CBBresearch/Lu/Demo/RESTful/tmTool.cgi/Gene/10364520/JSON/
https://www.ncbi.nlm.nih.gov/CBBresearch/Lu/Demo/RESTful/tmTool.cgi/BioConcept/10364520/JSON/

So I think there very well could be a pubtator error here, but M2C still should not return 502 when the set of annotations is empty...

@JTFouquier
Copy link
Collaborator

This issue is sporadic. This url Andrew posted (https://mark2cure.org/document/pubtator/10364520.json) mostly fails on dev, but once it did not. The only thing I did was add print statements to try to isolate the issue, so it wasn't a fix. Likely an issue with read_pubtator_bioc's as_writer OR the bioc_as_json, but was hard to isolate because it was producing random results for me.

screen shot 2017-02-28 at 9 50 11 am

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

No branches or pull requests

3 participants