geneontology / go-fastapi

https://api.geneontology.org/
4 stars 3 forks source link

Internal Server Error 405 from /api/go-cam/{id} - expected 200 or 404 #93

Closed kimrutherford closed 2 weeks ago

kimrutherford commented 2 months ago
curl https://api.geneontology.org/api/go-cam/66187e4700001573

Results in:

Internal Server Error

This is a production model, but is quite new: http://noctua.geneontology.org/workbench/noctua-visual-pathway-editor/?model_id=gomodel:66187e4700001573

kltm commented 2 months ago

@kimrutherford Just noting that models less than two weeks (as of today, between release) old would not be expected to give results. That said, Internal server error would also not be the way to communicate that.

kltm commented 2 months ago

Noting to @pgaudet that with actual use coming in on these APIs, we'll likely have some cleaning/debugging to do that will take away effort on other fronts.

kltm commented 2 months ago

Before we start digging in too much @sierra-moxon (hello again!) @dustine32 do you have any ideas?

sierra-moxon commented 2 months ago

notes from debugging today: the internal server error is intermittent, happens when the API loses connection to the RDF endpoint.

sierra-moxon commented 2 weeks ago

retested again; no errors, I get data back from: https://api.geneontology.org/api/go-cam/66187e4700001573.

kimrutherford commented 2 weeks ago

Hi @sierra-moxon

The API still returns an internal error is there is no data: https://api.geneontology.org/api/go-cam/66187e4700001574

Internal Server Error

I expected a 404 response code.

I wasn't having a problem in the case where the model is available.