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

Error when creating a representation #716

Open
aetxeberriasqs opened this issue May 22, 2023 · 0 comments
Open

Error when creating a representation #716

aetxeberriasqs opened this issue May 22, 2023 · 0 comments

Comments

@aetxeberriasqs
Copy link

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.

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

No branches or pull requests

1 participant