Auth token needs to be bytes, apparently.

This commit is contained in:
Itamar Turner-Trauring
2021-05-11 11:09:59 -04:00
parent 3f2571480c
commit 9baedc97db
2 changed files with 3 additions and 2 deletions

View File

@ -928,7 +928,8 @@ class _Client(node.Node, pollmixin.PollMixin):
random data in "api_auth_token" which must be echoed to API
calls.
"""
return self.config.get_private_config('api_auth_token')
return self.config.get_private_config(
'api_auth_token').encode("ascii")
def _create_auth_token(self):
"""