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

ValidationError: 2 validation errors for OAuth2ClientPair #19673

Open
galaxyproject-sentryintegration bot opened this issue Feb 20, 2025 · 1 comment
Open

Comments

@galaxyproject-sentryintegration

Sentry Issue: USEGALAXY-EU-MAIN-1JVW

ValidationError: 2 validation errors for OAuth2ClientPair
client_id
  Input should be a valid string [type=string_type, input_value=Undefined, input_type=StrictUndefined]
    For further information visit https://errors.pydantic.dev/2.9/v/string_type
client_secret
  Input should be a valid string [type=string_type, input_value=Undefined, input_type=StrictUndefined]
    For further information visit https://errors.pydantic.dev/2.9/v/string_type
(19 additional frame(s) were not displayed)
...
  File "galaxy/webapps/galaxy/api/file_sources.py", line 80, in template_oauth2
    return self.file_source_instances_manager.template_oauth2(trans, template_id, template_version)
  File "galaxy/managers/file_source_instances.py", line 170, in template_oauth2
    template_server_configuration = self._resolver.template_server_configuration(
  File "galaxy/managers/file_source_instances.py", line 647, in template_server_configuration
    oauth2_client_pair_obj, oauth2_scope = read_oauth2_info_from_configuration(
  File "galaxy/util/config_templates.py", line 603, in read_oauth2_info_from_configuration
    client_pair = OAuth2ClientPair(client_id=oauth2_client_id, client_secret=oauth2_client_secret)
@mvdbeek
Copy link
Member

mvdbeek commented Feb 21, 2025

It looks like your template doesn't define oauth2_client_id and oauth2_client_secret correctly. The value received here is Undefined, which is a jinja2 object: https://jinja.palletsprojects.com/en/stable/api/#jinja2.Undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant