Not able to retrieve records from ES for generated DIAL codes #110
Debayanpaul1593
started this conversation in
General Discussions
Replies: 1 comment
-
@Debayanpaul1593 looks like some issue with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Sunbird Team,
I am facing a problem where I am unable to search for DIAL codes. The API and its details can be found below
API endpoint: <dial_service_base_url>/dialcode/v3/search
Request Body:
{ "request": { "search": { "identifier": "J9S4M5", "status": "Draft", "limit":5 }, "fields": ["dialcode_index","identifier","channel","batchcode"], "limit": 5, "sort": {"dialcode_index": "Desc"} } }
Response
{ "id": "sunbird.dialcode.search", "ver": "3.0", "ts": "2023-03-20T17:55:09Z+05:30", "params": { "resmsgid": "faa2afc9-eda3-4f4b-87de-28347774e8f7", "msgid": null, "err": "SYSTEM_ERROR", "status": "failed", "errmsg": "Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]" }, "responseCode": "SERVER_ERROR", "result": {} }
After looking at a few solutions suggested on StackOverflow I was unable to come to a conclusion on how to solve this issue.
I can see the shard status as green for all the indices as
green open compositesearch ajM9zRXXS_ad9g1yruDbig 1 0 0 0 261b 261b
green open dialcodemetrics 9Ef6lmMsSbeAO7CEijbAmg 1 0 0 0 261b 261b
green open dialcode 5ePYl53aTUO1E3xHviMdug 1 0 0 0 261b 261b
Can someone please provide some insight as to what could be the issue in this case? I am running Elastic Search 6.8.22 through Docker
Beta Was this translation helpful? Give feedback.
All reactions