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

Issue fetching Retrieve provider Contract Offers #236

Closed
idrissyou opened this issue Apr 10, 2024 · 4 comments · Fixed by #247
Closed

Issue fetching Retrieve provider Contract Offers #236

idrissyou opened this issue Apr 10, 2024 · 4 comments · Fixed by #247
Labels

Comments

@idrissyou
Copy link

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 was able to create the resources using the terraform script provided.
  • I adapted the the config.properties as asked in the doc.
  • I updated the seeder
  • rebuild and run again.
  • the 2 connectors are up and running.

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

Copy link

Thanks for your contribution 🔥 We will take a look asap 🚀

@wissembhl
Copy link

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

@bpetrovbg
Copy link
Contributor

same issue here... :)

@bpetrovbg
Copy link
Contributor

bpetrovbg commented Apr 25, 2024

@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

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

Successfully merging a pull request may close this issue.

3 participants