Translating CID into common name report bad request?
wanglu2014 opened this issue · 3 comments
For example, we want to translate 5564 into Triclosan
With code like that
cts_convert("5564", from = "pubchem cid", to="Chemical Name")
I find it return NA and show a massage of bad request. Is it my code is wrong or a bug?
Hi,
this seems to be a problem with the CTS. It is not your code or a bug in webchem
It appears that any API call with
toIdentifier:"Chemical Name"
currently throws an exception: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
Thanks for letting us know @wanglu2014 and thanks for sussing out the issue @marcodilger. The CTS API relies on many other APIs working so occasionally things break and the often take a while to get fixed. Looks like maybe someone has reported this bug already, but might be helpful to report to CTS, especially if this isn't the same bug. https://bitbucket.org/fiehnlab/ctsproxy/issues/34/failure-to-call-chemical-name
This seems to be working again, although the issue on CTS's end hasn't been closed