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

Improve error message for undefined inputs #256

Open
orasimus opened this issue Nov 28, 2022 · 0 comments
Open

Improve error message for undefined inputs #256

orasimus opened this issue Nov 28, 2022 · 0 comments
Labels

Comments

@orasimus
Copy link
Contributor

If I have code referencing an input like:

import valohai

valohai.prepare(
    step='steppi',
    default_inputs={
        'inputti': 's3://bucket/file',
    },
)

print(valohai.inputs('inputti').path())

But then I forget to generate or manually update the valohai.yaml to include the input inputti, the error I get is:

15:28:06  raise InvalidSchema(f"No connection adapters were found for {url!r}")
15:28:06 requests.exceptions.InvalidSchema: No connection adapters were found for 's3://bucket/file'

This is not helpful in understanding that I'm trying to access an input which hasn't been defined.

@orasimus orasimus changed the title Error message for missing files could be improved Improve error message for missing files Nov 28, 2022
@orasimus orasimus changed the title Improve error message for missing files Improve error message for undefined inputs Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant