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

Could not create notification contract definition, provider returned status code 404 #310

Closed
tuanphampmt opened this issue Nov 27, 2023 · 5 comments
Assignees
Labels
bug Something isn't working linked_to_feature Issue is linked to a feature

Comments

@tuanphampmt
Copy link

tuanphampmt commented Nov 27, 2023

When I run to the IRS, I get the error ERROR [main] o.e.t.i.e.s.EdcRegistration: Could not create notification contract definition, provider returned status code 404

The reason is that the data body is used in the wrong format
API: /management/v3/assets
Data body: { "@context": {}, "asset": { "@id": "ess-response-asset", "properties": { "description": "ESS notification endpoint", "contenttype": "application/json", "notificationtype": "ess-supplier-response", "notificationmethod": "receive" } }, "dataAddress": { "baseUrl": "http://irs:8080/ess/notification/receive", "type": "HttpData", "proxyBody": "true", "proxyMethod": "true" } }
Call API /management/v3/assets error: mandatory object 'https://w3id.org/edc/v0.0.1/ns/properties' is missing

@tuanphampmt
Copy link
Author

Hope you can help me resolve this issue

@jzbmw jzbmw added the bug Something isn't working label Nov 27, 2023
@jzbmw
Copy link
Contributor

jzbmw commented Nov 27, 2023

The IRS is currently using the EDC V2 management endpoint.
@ds-jhartmann will be adding some information.

@ds-jhartmann
Copy link
Contributor

Hi @tuanphampmt, as Johannes mentioned, we still use the /management/v2 endpoint for our EDC communication.
We plan on updating this in one of our upcoming sprints.
In the meantime you can switch to the /v2/ management endpoint for the IRS. This endpoint is still supported in EDC 0.5.3 and works with IRS 4.0.0+

@jzbmw
Copy link
Contributor

jzbmw commented Nov 27, 2023

see #313

@ds-jhartmann
Copy link
Contributor

Hi @tuanphampmt,
we updated our EDC implementation to fully replace all the deprecated endpoints of EDC 0.5.3.
This is available with the latest IRS version 4.3.0.
The configuration has been updated to use the "management/v3/assets" endpoint by default. You can configure this via helm chart:

ess:
  edc:
    host: <your-edc-base-url>
  assetsPath: /management/v3/assets
  policydefinitionsPath: /management/v2/policydefinitions
  contractdefinitionsPath: /management/v2/contractdefinitions

I will close this issue now. Feel free to reopen it, if you still have issues.

@mkanal mkanal added the linked_to_feature Issue is linked to a feature label Jan 15, 2024
ds-jhartmann added a commit that referenced this issue Feb 22, 2024
…y-service-mock

feat(charts): Add discovery service mock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linked_to_feature Issue is linked to a feature
Projects
Status: done
Development

No branches or pull requests

4 participants