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

Passing in malformed inputs as "ScopedKeys" gives raw 500 error #297

Open
hmacdope opened this issue Aug 29, 2024 · 0 comments
Open

Passing in malformed inputs as "ScopedKeys" gives raw 500 error #297

hmacdope opened this issue Aug 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hmacdope
Copy link
Collaborator

Passing in a malformed key to one of the API endpoints (e.g /exists/blah) causes a 500 HTTP exception to be thrown.

This is caused by attempting to unpack the malformed key to a ScopedKey, here: https://github.com/openforcefield/alchemiscale/blob/main/alchemiscale/interface/api.py#L99C40-L100C1

Where an exception should be caught if the key cannot be unpacked into its components. This is possibly a problem in other API functions also and probably needs a more general solution.

@hmacdope hmacdope added the bug Something isn't working label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants