title: Hyperledger error 500 on REST API : ENDORSEMENT_POLICY_FAILURE
body: <p>I followed this tutorial : (<a href="https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org" rel="nofollow noreferrer">https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org</a>) to deploy a multi-organization network. And when I try to POST a transaction from my REST API, I have the following error :</p>
  
  <p><strong>"Error trying invoke business network. Error: Peer localhost:7051 has rejected transaction 'e12bc56bf4c0af54f7909a976da0c1342ec08a4872bff611eff392635b01cfb1' with code ENDORSEMENT_POLICY_FAILURE"</strong></p>
  
  <p>I do have the same error if I try to POST a transaction from command line.</p>
  
  <p>My endorsement policy is the following :</p>
  
  <pre><code>{
  "identities": [
      {
          "role": {
              "name": "member",
              "mspId": "Org1MSP"
          }
      },
      {
          "role": {
              "name": "member",
              "mspId": "Org2MSP"
          }
      }
  ],
  "policy": {
      "2-of": [
          {
              "signed-by": 0
          },
          {
              "signed-by": 1
          }
      ]
   }
  }
  </code></pre>
  
  <p>I know that this means that both organizations have to agree with each transaction but I don't know how am I suppose to make the organizations agree concretely. Does anyone know how to deal with this issue ?</p>
  
  <p>NB : If I try to create an asset or a participant from the REST API it works.</p>
  
  <p>Thank you!</p>