Replies: 2 comments
-
Ok, I checked up on the API Docs and compared the provided negotiate-contract.json file with the example body of the docs. I just took over the policy part:
so that my new negotiate-contract.json looks like this:
With the json like this I get a successful response:
The next issue I'm facing is that after I give the command to start the tranfer with
The policy has not been found for contract. Best regards! |
Beta Was this translation helpful? Give feedback.
-
Ok, the policy has not been found for contract because Im stupid. Realized that I had the @policy/type set to "Set". It needs to be set to "use" like we defined it. Now it works! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have issues managing the contract negotiation in the first streaming sample. I copy the odrl:hasPolicy/@id as it is in the catalog fetch into the negotiate-contract.json like this:
Then I send the negotiate-contract.json to the provider like in the tutorial like this
curl -H 'Content-Type: application/json' -d @transfer/streaming/streaming-01-http-to-http/negotiate-contract.json -X POST "http://localhost:28181/management/v2/contractnegotiations" -s | jq
but i get this error message:
Please help.
Thanks in advance
Greetings Traveler
Beta Was this translation helpful? Give feedback.
All reactions