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

Body response null retrieving entity data #165

Open
flopezag opened this issue Sep 14, 2023 · 0 comments
Open

Body response null retrieving entity data #165

flopezag opened this issue Sep 14, 2023 · 0 comments

Comments

@flopezag
Copy link
Member

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