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

Querying non-existent tables produces confusing error #139

Open
ceesem opened this issue Apr 12, 2024 · 0 comments
Open

Querying non-existent tables produces confusing error #139

ceesem opened this issue Apr 12, 2024 · 0 comments

Comments

@ceesem
Copy link
Collaborator

ceesem commented Apr 12, 2024

from caveclient import CAVEclient

datastack_name = 'minnie65_public'
client = CAVEclient(datastack_name)
client.materialize.get_table_metadata("some_nonsense_table_that_doesn't_exist")

should fail, but via an error that says the table does not exist. Instead, it fails with HTTPError: 500 Server Error: 'NoneType' object has no attribute 'pop' for url: https://minnie.microns-daf.com/materialize/api/v3/datastack/minnie65_public/version/795/table/some_nonsense_table_that_doesn't_exist/metadata. Various operations on table names (metadata, query table, etc) should validate that a table with that name exists and error in a clear way if not.

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

1 participant