-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Fails both from the admin UI using the Send Recovery Link button or via the Forgot password self-service recovery flow.
To Reproduce
- Attempt to send a recovery email
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
From the admin UI:

Attempting to do it using recovery flow:

Logs
Stacktrace from authentik
Traceback (most recent call last):
File "/authentik/flows/views/executor.py", line 287, in get
stage_response = self.current_stage_view.dispatch(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch
return handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/authentik/stages/email/stage.py", line 142, in get
self.send_email()
File "/authentik/stages/email/stage.py", line 121, in send_email
send_mails(current_stage, message)
File "/authentik/stages/email/tasks.py", line 26, in send_mails
promise = lazy_group()
^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/celery/canvas.py", line 1568, in __call__
return self.apply_async(partial_args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/celery/canvas.py", line 1598, in apply_async
results = list(self._apply_tasks(tasks, producer, app, p,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/celery/canvas.py", line 1775, in _apply_tasks
sig.apply_async(producer=producer, add_to_parent=False,
File "/ak-root/venv/lib/python3.11/site-packages/celery/canvas.py", line 400, in apply_async
return _apply(args, kwargs, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/celery/app/task.py", line 594, in apply_async
return app.send_task(
^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/celery/app/base.py", line 798, in send_task
amqp.send_task_message(P, name, message, **options)
File "/ak-root/venv/lib/python3.11/site-packages/celery/app/amqp.py", line 517, in send_task_message
ret = producer.publish(
^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/kombu/messaging.py", line 175, in publish
body, content_type, content_encoding = self._prepare(
^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/kombu/messaging.py", line 268, in _prepare
body) = dumps(body, serializer=serializer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/kombu/serialization.py", line 219, in dumps
with _reraise_errors(EncodeError):
File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/ak-root/venv/lib/python3.11/site-packages/kombu/serialization.py", line 45, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/ak-root/venv/lib/python3.11/site-packages/kombu/exceptions.py", line 34, in reraise
raise value.with_traceback(tb)
File "/ak-root/venv/lib/python3.11/site-packages/kombu/serialization.py", line 41, in _reraise_errors
yield
File "/ak-root/venv/lib/python3.11/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/kombu/utils/json.py", line 57, in dumps
return _dumps(s, cls=cls, **dict(default_kwargs, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 238, in dumps
**kw).encode(obj)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/encoder.py", line 200, in encode
chunks = self.iterencode(o, _one_shot=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/encoder.py", line 258, in iterencode
return _iterencode(o, 0)
^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.11/site-packages/kombu/utils/json.py", line 45, in default
return super().default(o)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/encoder.py", line 180, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
kombu.exceptions.EncodeError: Object of type MIMEImage is not JSON serializable
Version and Deployment (please complete the following information):
- authentik version: 2023.10.1
- Deployment: docker-compose
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working