Hi all,
Was working on creating a network study and we ran into an issue where some of the queries we have been running against the WebAPI have been returning ERROR CODE 500 which suggest that there is an error on the WebAPI server for https://atlas-demo.ohdsi.org/
Here is an example query that we tried running that used to work against the ATLAS demo but no longer:
library("jsonlite")
library("httr")
test_url <- sprintf("http://atlas-demo.ohdsi.org/WebAPI/vocabulary/%s/relatedconcepts/", 13746004)
test_json <- jsonlite::toJSON(
list(
CONCEPT_ID = list(436665),
CONCEPT_CLASS_ID = list("Clinical Finding"),
VOCABULARY_ID = list("SNOMED")
),
pretty = T, auto_unbox = T
)
httr::POST(test_url, body = test_json, encode = "json")
Here is what we now get:
{
"payload": {
"cause": null,
"stackTrace": [],
"message": "An exception occurred: javax.ws.rs.NotAllowedException",
"localizedMessage": "An exception occurred: javax.ws.rs.NotAllowedException",
"suppressed": []
},
"headers": {
"id": "a2b7043f-37a0-37ee-861f-1a46a08083a8",
"timestamp": 1634680466615
}
}
Could anyone please help me?
We have also opened an issue here describing the problem further: https://github.com/OHDSI/WebAPI/issues/1951
Thank you!