Closed horpto closed 3 years ago
settings.py:
DRAMATIQ_ENCODER = "dramatiq.encoder.PickleEncoder" ... DRAMATIQ_RESULT_BACKEND = { "BACKEND": "dramatiq.results.backends.redis.RedisBackend", "BACKEND_OPTIONS": { "url": get_env_param_str('PERSISTENT_CACHE_URL', "redis://localhost:6379"), "encoder": DRAMATIQ_ENCODER, }, "MIDDLEWARE_OPTIONS": { "result_ttl": 60000, }, }
will cause TypeError: encode() argument 'encoding' must be str, not tuple. It's inconsistent with type of DRAMATIQ_ENCODER.
TypeError: encode() argument 'encoding' must be str, not tuple
Can you give some more details? This seems to work when I try it. A stack trace would be helpful.
Closing for now. Feel free to reopen with more details.
settings.py:
will cause
TypeError: encode() argument 'encoding' must be str, not tuple
. It's inconsistent with type of DRAMATIQ_ENCODER.