Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContractNegotiation stays in state Verified on Consumer side #200

Closed
Jens011203 opened this issue Oct 25, 2023 · 5 comments
Closed

ContractNegotiation stays in state Verified on Consumer side #200

Jens011203 opened this issue Oct 25, 2023 · 5 comments
Labels

Comments

@Jens011203
Copy link

Bug Report

When trying out the http-data-plane in the MVD. I ran into the problem that the Contractnegotiation won't progress to state Finalized on Consumer side.

Describe the Bug

In the logs of the provider I get following error message:

DEBUG 2023-10-25T08:36:44.73656125 ContractNegotiation: ID d7978c6a-8ffb-4e38-8432-ba62eda1ef70. [Provider] send finalization
SEVERE 2023-10-25T08:36:44.736606958 ContractNegotiation: ID d7978c6a-8ffb-4e38-8432-ba62eda1ef70. Fatal error while [Provider] send finalization. Error details: {"@type":"dspace:ContractNegotiationError","dspace:code":"400","dspace:reason":"Invalid client credentials: Invalid counter-party identity","dspace:processId":"0a43f92c-b187-410b-a6a0-cc698b4984fe","@context":{"dct":"https://purl.org/dc/terms/","edc":"https://w3id.org/edc/v0.0.1/ns/","dcat":"https://www.w3.org/ns/dcat/","odrl":"http://www.w3.org/ns/odrl/2/","dspace":"https://w3id.org/dspace/v0.8/"}}
DEBUG 2023-10-25T08:36:44.736661708 [ProviderContractNegotiationManagerImpl] ContractNegotiation d7978c6a-8ffb-4e38-8432-ba62eda1ef70 is now in state TERMINATED

My POST for the contractnegotiation looks like this:

curl --request POST \
  --url http://localhost:9192/api/management/v2/contractnegotiations \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: insomnia/8.1.0' \
  --header 'x-api-key: ApiKeyDefaultValue' \
  --data '{ "@context": {
    "edc": "https://w3id.org/edc/v0.0.1/ns/",
		"odrl": "http://www.w3.org/ns/odrl/2/"
  },
  "@type": "ContractRequest",
  "connectorId": "PROVIDER",
  "connectorAddress": "http://company1:8282/api/dsp",
  "consumerId": "CONSUMER",
 	"providerId": "PROVIDER",
  "protocol": "dataspace-protocol-http",
  "offer": {
   "offerId": "MU1iRGF0YQ==:MU1iRGF0YQ==:Mjg5ZDM0MzgtMTU2My00MTMyLWJjNDktNDdmZjZiNjhkMzY5",
   "assetId": "1MbData",
   "policy": {
     "@id": "MU1iRGF0YQ==:MU1iRGF0YQ==:Mjg5ZDM0MzgtMTU2My00MTMyLWJjNDktNDdmZjZiNjhkMzY5",
     "@type": "Set",
     "odrl:permission": [],
     "odrl:prohibition": [],
     "odrl:obligation": [],
     "odrl:target": "1MbData"
   }
  }
}'

Although I get an contractagreement, which work for the transfer. Am I missing something in my request?

Expected Behavior

The state of the ContractNegotiation should progress to state FINALIZED

@cheekzi
Copy link

cheekzi commented Feb 15, 2024

Make sure that connectorId and providerId are set to your edc.participant.id configuration of the provider's connector!
For the MVD it is set in docker-compose.yml EDC_PARTICIPANT_ID: did:web:did-server:company1

Copy link

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Jul 18, 2024
Copy link

This issue is stale because it has been open for 28 days with no activity.

Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants