Skip to content

Body response null retrieving entity data #165

@flopezag

Description

@flopezag

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):

  • type: Error type as per clause 5.5.2 ("https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound").
  • title: Error title which shall be a short string summarizing the error ("Resource Not Found").
  • detail: A detailed message that should convey enough information about the error ("Unable to find the entity ").

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'."
}

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