Skip to content

Unable to query via type as well as pageSize #210

@jrobinedwards

Description

@jrobinedwards

I am using Mintaka to query temporal data.
This query works for me:

curl -v -G GET 'https://ltupostgresm.vps.webdock.cloud:8080/temporal/entities/urn:ngsi-ld:Site:Munksund_Skola:Building:04:Space:Default:Sensor:1473_04_AS01_VS21_GT300-Damped-Test/' \
-H 'NGSILD-Tenant: esuda' \
-H 'Accept: application/ld+json' \
-H 'Link: <https://iotgateway.vps.webdock.cloud:8000/context/esuda-v1.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
  -d 'timerel=after' \
  -d 'timeAt=2025-01-10T00:00:00Z' \
  -d 'timeproperty=observedAt' \
  -d 'options=temporalValues' | jq
  

However, when I add the pageSize parameter it fails:

curl -v -G GET 'https://ltupostgresm.vps.webdock.cloud:8080/temporal/entities/urn:ngsi-ld:Site:Munksund_Skola:Building:04:Space:Default:Sensor:1473_04_AS01_VS21_GT300-Damped-Test/' \
-H 'NGSILD-Tenant: esuda' \
-H 'Accept: application/ld+json' \
-H 'Link: <https://iotgateway.vps.webdock.cloud:8000/context/esuda-v1.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
  -d 'pageSize=2' \
  -d 'timerel=after' \
  -d 'timeAt=2025-01-10T00:00:00Z' \
  -d 'timeproperty=observedAt' \
  -d 'options=temporalValues' | jq
  
Response:
{
  "type": "https://uri.etsi.org/ngsi-ld/errors/BadRequestData",
  "title": "Unsupported parameters",
  "status": 400,
  "detail": "Received unsupported parameter(s): [pageSize]"
}

And if pass the type it fails again:

curl -v -G 'https://ltupostgresm.vps.webdock.cloud:8080/temporal/entities/' \
-H 'NGSILD-Tenant: esuda' \
-H 'Link: <https://iotgateway.vps.webdock.cloud:8000/context/esuda-v1.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
  -d 'type=brick:Outside_Air_Temperature_Sensor' \
  -d 'timerel=after' \
  -d 'timeAt=2025-01-10T00:00:00Z' \
  -d 'timeproperty=observedAt' | jq
Response:
{
  "type": "https://uri.etsi.org/ngsi-ld/errors/InternalError",
  "title": "Unexpected error.",
  "status": 500,
  "detail": "org.hibernate.exception.SQLGrammarException: could not extract ResultSet"
}

Do you know what can be the reason?
Thank you.

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