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

[Bug] Issue with default time filter. #300

Closed
kailash opened this issue Aug 29, 2022 · 1 comment
Closed

[Bug] Issue with default time filter. #300

kailash opened this issue Aug 29, 2022 · 1 comment

Comments

@kailash
Copy link
Collaborator

kailash commented Aug 29, 2022

If no temporal parameters are passed to the /entities endpoint, the application tries to enforce a default n days(10 or 30) time filter. Currently, this is not working as expected and returning a 400 response for the correct query.

Issue from log

{
   "error":{
      "root_cause":[
         {
            "type":"parse_exception",
            "reason":"unit [n] not supported for date math [-nowd/d]"
         }
      ],
      "type":"search_phase_execution_exception",
      "reason":"all shards failed",
      "phase":"query",
      "grouped":true,
      "failed_shards":[
         {
            "shard":0,
            "index":"<<index_id>>",
            "node":"",
            "reason":{
               "type":"parse_exception",
               "reason":"unit [n] not supported for date math [-nowd/d]"
            }
         }
      ]
   },
   "status":400
}


@kailash
Copy link
Collaborator Author

kailash commented Sep 8, 2022

The issue is resolved with a change in config, production,now,10 changed to production,10,10.

@kailash kailash closed this as completed Sep 8, 2022
abhi4578 added a commit to abhi4578/iudx-deployment that referenced this issue Sep 11, 2022
- upgrade image to 4.0-alpha-e6b07eb
- correct config option timelimit
datakaveri/iudx-resource-server#300
- Need To do postgres db migration through flyway, addition of
V3_0 scheme https://github.com/datakaveri/iudx-resource-server/blob/master/src/main/resources/db/migration/V3_0__Alter-s3-table-add-query-column.sql
- Need to add extra queue - ``rs-async-query``
and exchange ``async-query`` at RMQ . The above queue
is binded to exchange with routing key ``#``.
pranavv0 pushed a commit to pranavv0/iudx-deployment that referenced this issue May 1, 2023
- upgrade image to 4.0-alpha-e6b07eb
- correct config option timelimit
datakaveri/iudx-resource-server#300
- Need To do postgres db migration through flyway, addition of
V3_0 scheme https://github.com/datakaveri/iudx-resource-server/blob/master/src/main/resources/db/migration/V3_0__Alter-s3-table-add-query-column.sql
- Need to add extra queue - ``rs-async-query``
and exchange ``async-query`` at RMQ . The above queue
is binded to exchange with routing key ``#``.
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