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

Cannot create new Application #270

Open
ntarocco opened this issue Jan 6, 2025 · 1 comment
Open

Cannot create new Application #270

ntarocco opened this issue Jan 6, 2025 · 1 comment

Comments

@ntarocco
Copy link

ntarocco commented Jan 6, 2025

Stacktrace:

ValueError: too many values to unpack (expected 3)
  File "flask/app.py", line 2529, in wsgi_app
    response = self.full_dispatch_request()
  File "flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "flask_login/utils.py", line 290, in decorated_view
    return current_app.ensure_sync(func)(*args, **kwargs)
  File "invenio_oauth2server/views/settings.py", line 145, in client_new
    return render_template(
  File "flask/templating.py", line 147, in render_template
    return _render(app, template, context)
  File "flask/templating.py", line 130, in _render
    rv = template.render(context)
  File "jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.9/site-packages/invenio_oauth2server/templates/semantic-ui/invenio_oauth2server/settings/client_new.html", line 13, in top-level template code
    {%- from "invenio_oauth2server/settings/_macros.html" import render_field with context %}
  File "/usr/local/lib/python3.9/site-packages/invenio_oauth2server/templates/semantic-ui/invenio_oauth2server/settings/index.html", line 13, in top-level template code
    {%- import "invenio_oauth2server/settings/helpers.html" as helpers with context %}
  File "/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page_settings.html", line 15, in top-level template code
    {%- set title = _("Settings") %}
  File "/usr/local/lib/python3.9/site-packages/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/page.html", line 11, in top-level template code
    {%- extends "invenio_theme/page.html" -%}
  File "/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html", line 86, in top-level template code
    {%- block body %}
  File "/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html", line 97, in block 'body'
    {%- block body_inner %}
  File "/usr/local/lib/python3.9/site-packages/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/page.html", line 21, in block 'body_inner'
    {%- block page_body %}
  File "/usr/local/lib/python3.9/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page_settings.html", line 51, in block 'page_body'
    {%- block settings_content scoped %}
  File "/usr/local/lib/python3.9/site-packages/invenio_oauth2server/templates/semantic-ui/invenio_oauth2server/settings/client_new.html", line 23, in block 'settings_content'
    {{ render_field(field) }}
  File "jinja2/runtime.py", line 782, in _invoke
    rv = self._func(*arguments)
  File "/usr/local/lib/python3.9/site-packages/invenio_oauth2server/templates/semantic-ui/invenio_oauth2server/settings/_macros.html", line 22, in template
    {{ field(placeholder=_(field.label.text | string), **extras) }}
  File "wtforms/fields/core.py", line 164, in __call__
    return self.meta.render_field(self, kwargs)
  File "wtforms/meta.py", line 64, in render_field
    return field.widget(field, **render_kw)
  File "werkzeug/local.py", line 570, in <lambda>
    __call__ = _ProxyLookup(lambda self, *args, **kwargs: self(*args, **kwargs))
  File "invenio_oauth2server/theme/semantic/form_styling.py", line 29, in __call__
    for val, label, selected in field.iter_choices():

Probably related to pallets-eco/wtforms#816

@utnapischtim
Copy link
Contributor

i think this PR should fix it

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

2 participants