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

MaybeEncodingError - async Work #36

Open
ramiboutas opened this issue Mar 21, 2022 · 0 comments
Open

MaybeEncodingError - async Work #36

ramiboutas opened this issue Mar 21, 2022 · 0 comments

Comments

@ramiboutas
Copy link

I run into an Error using django-tex with celery and celery results. The error was:

[2022-03-21 21:25:10,946: ERROR/MainProcess] Task handler raised error: <MaybeEncodingError: Error sending result: ''(1, <ExceptionInfo: TexError()>, None)''. Reason: ''PicklingError("Can't pickle <class 'django_tex.exceptions.TexError'>: it's not the same object as django_tex.exceptions.TexError")''.>

By adding this line of code at the end of the TexError.init method, the issue it is solved:

super(TexError, self).__init__(log, source, template_name)

Check following issue for more: celery/celery#3623
celery/celery#3623 (comment)

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