1👍
✅
After read source code, I found that the gearman client doesn’t support unicode
.
Change argument’s type to str
or bytes
will fix your issue.
client.submit_job("task1") # error: Received non-binary arguments
client.submit_job(b"task1") # ok
Source:stackexchange.com