Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Error when creating a representation #716

@aetxeberriasqs

Description

@aetxeberriasqs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions