International-Data-Spaces-Association / DataspaceConnector

This is an IDS Connector reference implementation.
Apache License 2.0
31 stars 25 forks source link

Error when creating a representation #716

Open aetxeberriasqs opened 1 year ago

aetxeberriasqs commented 1 year ago

I have deployed IDS-testbed, which is using version 8.0.2 for the connector I have created a representation in the json below and two have been created instead of one. Which one of those dont have the offer item.

        {
            "creationDate": "2023-05-22T12:10:14.444+0000",
            "modificationDate": "2023-05-22T12:10:14.444+0000",
            "remoteId": "genesis",
            "title": "Datos en CSV",
            "description": "Datos en CSV",
            "mediaType": "csv",
            "language": "EN",
            "additional": {},
            "_links": {
                "self": {
                    "href": "https://135.125.15.34:8080/api/representations/9821913b-1e77-425f-a0c6-6151cf160bba"
                },
                "artifacts": {
                    "href": "https://135.125.15.34:8080/api/representations/9821913b-1e77-425f-a0c6-6151cf160bba/artifacts{?page,size}",
                    "templated": true
                },
                "offers": {
                    "href": "https://135.125.15.34:8080/api/representations/9821913b-1e77-425f-a0c6-6151cf160bba/offers{?page,size}",
                    "templated": true
                },
                "subscriptions": {
                    "href": "https://135.125.15.34:8080/api/representations/9821913b-1e77-425f-a0c6-6151cf160bba/subscriptions{?page,size}",
                    "templated": true
                }
            }
        },
        {
            "creationDate": "2023-05-22T12:33:39.725+0000",
            "modificationDate": "2023-05-22T12:33:39.725+0000",
            "remoteId": "https://135.125.15.34:8080/api/representations/9821913b-1e77-425f-a0c6-6151cf160bba",
            "title": "",
            "description": "",
            "mediaType": "csv",
            "language": "https://w3id.org/idsa/code/EN",
            "additional": {
                "ids:created": "2023-05-22T12:10:14.444Z",
                "ids:modified": "2023-05-22T12:10:14.444Z"
            },
            "_links": {
                "self": {
                    "href": "https://135.125.15.34:8080/api/representations/0e38c9b9-29c8-4f94-b058-0769b39fb5f2"
                },
                "artifacts": {
                    "href": "https://135.125.15.34:8080/api/representations/0e38c9b9-29c8-4f94-b058-0769b39fb5f2/artifacts{?page,size}",
                    "templated": true
                },
                "requests": {
                    "href": "https://135.125.15.34:8080/api/representations/0e38c9b9-29c8-4f94-b058-0769b39fb5f2/requests{?page,size}",
                    "templated": true
                },
                "subscriptions": {
                    "href": "https://135.125.15.34:8080/api/representations/0e38c9b9-29c8-4f94-b058-0769b39fb5f2/subscriptions{?page,size}",
                    "templated": true
                }
            }
        },

In the terminal, the following error appears.

image Error

And if you do a Get for getting the representation there is no offer path. If you try to get an offer with the /offers endpoint, it returns a 500 as there is offers to represent.