FIWARE / mintaka

implementation of the NGSI-LD temporal retrieval api.
5 stars 2 forks source link

Body response null retrieving entity data #165

Open flopezag opened 1 year ago

flopezag commented 1 year ago

Description

ORION_LD_VERSION=1.5.0-PRE-1443 MINTAKA_VERSION=0.5.40

When I tried to recover the temporal representation of an unknow entity, Mintaka returns a 404 message but the payload body is empty (null), when it should return the following structure and data (spec 1.3.1, section 5.5.3):

Sequence of steps

Retrieve Temporal Representation Of Entity Request ->

{
    "method": "GET",
    "url": "http://localhost:8080/temporal/entities/urn:ngsi-ld:Vehicle:unknowEntity",
    "headers": {
        "User-Agent": "python-requests/2.31.0",
        "Accept-Encoding": "gzip, deflate",
        "Accept": "*/*",
        "Connection": "keep-alive"
    },
    "body": null
}

Response ->

{
    "url": "http://localhost:8080/temporal/entities/urn:ngsi-ld:Vehicle:unknowEntity",
    "headers": {
        "date": "Thu, 14 Sep 2023 14:56:17 GMT",
        "connection": "keep-alive",
        "transfer-encoding": "chunked"
    },
    "status_code": 404,
    "reason": "Not Found",
    "body": null
}

Expected value of "body" ->

{
    "type": "https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound",
    "title": "Resource Not Found",
    "detail": "Unable to find the entity 'urn:ngsi-ld:Vehicle:unknowEntity'."
}