This error comes from the client. You are calling 2 times set_succeeded on the server, so the client complains, as the second time the action is already in a terminal state. You should call the set_X methods only once.