-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels