RohitBR_K
(RohitBR K)
May 17, 2022, 11:07am
1
Am starting Elasticsearch like this
cd elasticsearch/bin/elasticsearch.bat
but am getting permission denied when am accessing one of my es documents through my API.
am not understanding what's the issue here . Am using windows as my operating system.
If anyone knows the solution , please help me
Hello @RohitBR_K
I believe you have placed the elastisearch in C drive's permission required folder.
To sort out this you can two things:
if you have admin rights launch the command prompt as administrator and then execute this command
if you don't have admin rights then move this Elasticsearch folder to some other location and execute the command.
Keep Posted!!!Thanks!!!
1 Like
Could you provide some screenshots on how you are accessing your es documents through your api
with the error message
Could you try using the same command with
Cat api
GET _cat//
sorry I didn't get that. Can you please enlarge this
@RohitBR_K
Could you try using the same command with
Cat api
GET _cat/<index-name>/<doc-name>?v=true&s=index
Reference:
@RohitBR_K
yes, using curl command
curl -X GET "http://localhost:9200/<index>/_search?pretty" -u "<your-elastic-username>"
if you are accessing your cluster using credentials else the same command without credentials
curl -X GET "http://localhost:9200/<index>/_search?pretty
RohitBR_K
(RohitBR K)
May 19, 2022, 9:15am
11
sorry , not working this bro
Could you share the output of the above command
1 Like
RohitBR_K
(RohitBR K)
May 19, 2022, 9:20am
13
yes am getting that using the command you provide , but I wonder , why am getting that error when calling through API
@RohitBR_K
I believe its more of a thing that needs to be checked in Django level which needs to focus on configuration part
system
(system)
Closed
June 16, 2022, 9:34am
16
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.