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:
According to the source code as of the v2.9.0 release, the only endpoint that matches that is via {sourcekey}/relatedconcepts, where you post a concept list.in the form you gave it (tho, i’m not sure your list of lists yields exactly the correct json format).
Are you sure you are passing in the right ‘sourcekey’ paramater? a sourcekey of 13746004 doesn’t look right.
I added a call to content_type_json() to the R code and changed http to https and let WebAPI use the default vocabulary. If you want to specify a vocabulary you could include the string ‘SYNPUF5PCT’ (without the quotes) in the url.
Hey @admin - this worked perfectly! Super appreciate the help here! I missed seeing the upgrade take place recently and thought we had run into an issue with WebAPI as I also had a colleague test it and get the same errors we were getting on work that previously had functioned for them.
Thanks for the help! Posted your solution back to GitHub for posterity.
P.S. Thanks for the comment as well @Chris_Knoll - with your feedback here, we also identified a bug and solved it with your suggestion by double checking some of our formatting.