From bfd79b65d0e025f58ee354ca53c7fe19badc457b Mon Sep 17 00:00:00 2001 From: Debdut Goswami Date: Tue, 7 Apr 2026 00:57:41 +0530 Subject: [PATCH] Fix wizard create sending empty args list Wizard.create() was sending an empty list [] as the request body, which caused an IndexError in the server's rpc.convert() when it tried to pop the context from args. Send [{}] instead so the server gets an empty context dict as expected. --- fulfil_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fulfil_client/client.py b/fulfil_client/client.py index d9b4052..8bf0a66 100755 --- a/fulfil_client/client.py +++ b/fulfil_client/client.py @@ -324,7 +324,7 @@ def create(self, context=None): ctx.update(context or {}) request_logger.debug("Wizard::%s.create" % (self.wizard_name,)) rv = self.client.session.put( - self.path + "/create", dumps([]), params={"context": dumps(ctx)} + self.path + "/create", dumps([{}]), params={"context": dumps(ctx)} ) # Call response signal return rv