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

Crash: 'NoneType' object has no attribute 'translate' when required parameters fields are missing #720

Open
tristanlatr opened this issue Nov 21, 2023 · 1 comment

Comments

@tristanlatr
Copy link

I'm running into this error when using script-server 1.18.0 and executing a script.

Traceback (most recent call last):
File "src/web/server.py", line 410, in post
execution_id = self.application.execution_service.start_script(config_model, user)
File "src/execution/execution_service.py", line 55, in start_script
executor.start(execution_id)
File "src/execution/executor.py", line 72, in start
env_variables = _build_env_variables(parameter_values, self.config.parameters, execution_id)
File "src/execution/executor.py", line 271, in _build_env_variables
env_var = _to_env_name(param_name)
File "src/execution/executor.py", line 245, in _to_env_name
transliterated = transliterate(key)
File "src/utils/transliteration.py", line 89, in transliterate
transliterated = text.translate(table)
AttributeError: 'NoneType' object has no attribute 'translate'
@tristanlatr
Copy link
Author

tristanlatr commented Nov 21, 2023

I was missing the "name" of some constant parameter in the script config... A better error message would be good when required fields are missing.

@tristanlatr tristanlatr changed the title Crash: 'NoneType' object has no attribute 'translate' Crash: 'NoneType' object has no attribute 'translate' when required parameters fields are missing Nov 21, 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

No branches or pull requests

1 participant