Closed Jens011203 closed 1 year ago
Also the HttpDataSource appears to be failing to fetch data from the sample endpoint https://jsonplaceholder.typicode.com/users, as the returned content is null. @ndr-brt Do you have any insights regarding this issue?
your dataDestination
value is telling the provider connector that the consumer is expecting the data to be pushed to an endpoint exposed at the url http://localhost:4000/api/consumer/store
.
The error java.net.ConnectException: Failed to connect to localhost/127.0.0.1:4000
is telling us that there's no endpoint exposed on that port.
That's somehow not the problem. I started the server in the terminal with the following command:
HTTP_SERVER_PORT=4000 java -jar http_request_logger/build/libs/http_request_logger-0.2.0.jar
The logs confirmed that the HTTP request server logger successfully started at port 4000, which is the expected behaviour. To further verify this, I tested it with the HTTP-push sample and indeed it functioned correctly.
However, when attempting to use it in the MVD, I get this error.
did you started the endpoint into the docker network? I don't think so, because otherwise the hostname won't be localhost
. the MVD is running into a docker compose network, so every other service will need to do that as well
Thank you for your help. I hadn't considered this. I'm going to close the issue now.
Bug Report
The provider connector fails to connect to the endpoint given by the consumer.
Describe the Bug
I want to transfer data via the http-data-plane. I can negotiate a contract and start the transfer. The transferprocess starts as aspected:
But when the actual data-transfer should happen, I get the following error message:
I start the transfer with the following POST:
The endpoint "http://localhost:4000/api/consumer/store" is reachable and should work for the transfer. What could be the problem here?
Expected Behavior
The data should be transfered
Steps to Reproduce
Steps to reproduce the behavior: