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

UnicodeEncodeError with non-ascii headers #132

Closed
davidszotten opened this issue Apr 9, 2019 · 0 comments · Fixed by #133
Closed

UnicodeEncodeError with non-ascii headers #132

davidszotten opened this issue Apr 9, 2019 · 0 comments · Fixed by #133

Comments

@davidszotten
Copy link
Contributor

Hi.

I'm trying to upgrade to celery 4 which, in particular includes reprs of args and kwargs in headers. however, it seems librabbitmq fails to handle non-ascii headers

>>> import kombu
>>> from kombu import Connection
>>> conn = Connection("librabbitmq://rabbitmq")
>>> channel = conn.channel()
>>> channel.basic_publish('', headers={'key': 'ö'})

UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in position 0: ordinal not in range(128)

am i doing something wrong? (We rely on this library for the performance compared to the pure python version)

best, and thanks!

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

Successfully merging a pull request may close this issue.

1 participant