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

Translating CID into common name report bad request? #327

Open
wanglu2014 opened this issue May 22, 2021 · 3 comments
Open

Translating CID into common name report bad request? #327

wanglu2014 opened this issue May 22, 2021 · 3 comments

Comments

@wanglu2014
Copy link

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?

@marcodilger
Copy link

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 $

@Aariq
Copy link
Collaborator

Aariq commented May 23, 2021

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

@Aariq
Copy link
Collaborator

Aariq commented Jan 5, 2022

This seems to be working again, although the issue on CTS's end hasn't been closed

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

No branches or pull requests

3 participants