eclipse-edc / Samples

Apache License 2.0
29 stars 54 forks source link

Issue fetching Retrieve provider Contract Offers #236

Closed idrissyou closed 4 months ago

idrissyou commented 5 months ago

Hi, I'm exploring the Samples repository I have faced some challenges trying Samples/transfer/transfer-05-file-transfer-cloud the example is trying to make a data exchange between 2 connector and using blob storage and s3 bucket:

https://github.com/eclipse-edc/Samples/tree/main/transfer/transfer-05-file-transfer-cloud

I tried request data offers from the provider, by running:

curl -X POST "http://localhost:9192/management/catalog/request" \ --header 'X-Api-Key: password' \ --header 'Content-Type: application/json' \ --data-raw '{ "counterPartyAddress": "http://localhost:8282/protocol" }'

I got the following response:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404 Not Found</h2>
<table>
<tr><th>URI:</th><td>/management/catalog/request</td></tr>
<tr><th>STATUS:</th><td>404</td></tr>
<tr><th>MESSAGE:</th><td>Not Found</td></tr>
<tr><th>SERVLET:</th><td>EDC-management</td></tr>
</table>

</body>
</html>

I can see an error message on the provider as well

Unexpected exception caught
jakarta.ws.rs.NotFoundException: HTTP 404 Not Found
        at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:258)
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)...

Is there anything that I'm missing?

Thank you in advance

conf code Screenshot 2024-04-10 152821

github-actions[bot] commented 5 months ago

Thanks for your contribution :fire: We will take a look asap :rocket:

wissembhl commented 5 months ago

I have excactly the same issue. Can someone help us to fix this problem please !

bpetrovbg commented 5 months ago

same issue here... :)

bpetrovbg commented 5 months ago

@idrissyou @wissembhl so, after some experimenting, it seems that this Sample has not been updated for a while...

Can you please try again with:

http://localhost:9192/management/v2/catalog/request

notice that this time we have "v2" in the endpoint

Please, also check your consumer and provider configurations, because these in the 05 example are not full (you mostly need the parts from the earlier samples that describe how to run connectors and do simple file transfers between them, just be careful with the ports and endpoints)...

You can also use the following payload :

{ "@context": { "@vocab": "https://w3id.org/edc/v0.0.1/ns/" }, "counterPartyAddress": "http://localhost:8282/protocol", "protocol": "dataspace-protocol-http" } image