Fix client.post method invocation in createMessage