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

convert/mol3D - request failing with 500 error #239

Closed
NishaSharma14 opened this issue Jun 26, 2023 · 0 comments · Fixed by #235
Closed

convert/mol3D - request failing with 500 error #239

NishaSharma14 opened this issue Jun 26, 2023 · 0 comments · Fixed by #235
Assignees

Comments

@NishaSharma14
Copy link
Contributor

NishaSharma14 commented Jun 26, 2023

https://dev.api.naturalproducts.net/latest/convert/mol3D?smiles=CC%28%3DCCC%2FC%28%3DC%2FCC%2FC%28%3DC%2FCC%2FC%28%3DC%2FCCC%28C%29CCOP%28%3DO%29%28O%29OP%28%3DO%29%28O%29O%5BC%40%40H%5D1%5BC%40%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O1%29O%5BC%40H%5D2%5BC%40%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O2%29O%5BC%40H%5D3%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%5BC%40%40H%5D4%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%5BC%40%40H%5D5%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O5%29O%5BC%40%40H%5D6%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O6%29O%29O%29O%29O%29O%29O4%29O%29O%5BC%40%40H%5D7%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O7%29O%5BC%40%40H%5D8%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O8%29O%29O%29O%29O%29O%29O%29O3%29O%29O%5BC%40%40H%5D9%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O9%29O%29O%29O%5BC%40%40H%5D%2510%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O%2510%29O%29O%29O%5BC%40%40H%5D%2511%5BC%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O%2511%29O%29O%5BC%40%40H%5D%2512%5BC%40%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O%2512%29O%29O%5BC%40%40H%5D%2513%5BC%40%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O%2513%29O%29O%29O%5BC%40%40H%5D%2514%5BC%40%40H%5D%28%5BC%40H%5D%28%5BC%40%40H%5D%28%5BC%40%40H%5D%28CO%29O%2514%29O%29O%29O%29O%29O%29O%29O%29NC%28%3DO%29C%29O%29NC%28%3DO%29C%29%2FC%29%2FC%29%2FC%29C&generator=rdkit

Log -

 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/opt/conda/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/fastapi/applications.py", line 284, in __call__
    await super().__call__(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/opt/conda/lib/python3.10/site-packages/prometheus_fastapi_instrumentator/middleware.py", line 169, in __call__
    raise exc
  File "/opt/conda/lib/python3.10/site-packages/prometheus_fastapi_instrumentator/middleware.py", line 167, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/opt/conda/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/opt/conda/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 443, in handle
    await self.app(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/fastapi/applications.py", line 284, in __call__
    await super().__call__(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/opt/conda/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/opt/conda/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/opt/conda/lib/python3.10/site-packages/fastapi/routing.py", line 241, in app
    raw_response = await run_endpoint_function(
  File "/opt/conda/lib/python3.10/site-packages/fastapi/routing.py", line 167, in run_endpoint_function
    return await dependant.call(**values)
  File "/code/app/routers/converters.py", line 78, in Create3D_Coordinates
    content=get3Dconformers(smiles, depict=False),
  File "/code/app/modules/toolkits/rdkit_wrapper.py", line 108, in get3Dconformers
    AllChem.MMFFOptimizeMolecule(mol, maxIters=200)
ValueError: Bad Conformer Id
Kohulan added a commit that referenced this issue Jun 26, 2023
@Kohulan Kohulan linked a pull request Jun 26, 2023 that will close this issue
This was referenced Jun 27, 2023
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

Successfully merging a pull request may close this issue.

2 participants