eclipse-tractusx / tutorial-resources

Apache License 2.0
11 stars 23 forks source link

Bug: Consumer data-plane (proxy) pathSegment in EDR transfer tutorial is not working #355

Closed ieuna closed 3 months ago

ieuna commented 3 months ago

Current Behavior

In EDR transfer tutorial, adding path segment parameter to postman or curl request result in Internal Server Error. EDR_Error

Expected Behavior

If we add another parameter in the request to fetch exactly one item from the list,

curl --location 'http://localhost/bob/proxy/aas/request' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: password' \
--data '{
    "assetId": "1",
    "providerId": "BPNL000000000001",
    "pathSegments": "/1"
}' | jq

it should give us-

{
  "userId": 1,
  "id": 1,
  "title": "delectus aut autem",
  "completed": false
}

Steps To Reproduce

Execute the following command as mentioned in path segment step of EDR transfer tutorial

curl --location 'http://localhost/bob/proxy/aas/request' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: password' \
--data '{
    "assetId": "1",
    "providerId": "BPNL000000000001",
    "pathSegments": "/1"
}' | jq

Possible Solution

Fix the base URL of create asset seed data following this reference.