AuthorizationException in Authorization header

Hi,
I have a python service API that connects to an ES instance to query an index and return the query result.
I was previously using ES on the same local machine and everything was working great.
Due to disk space and memory issues I had to move the ES instance to AWS ES.
Now when I call my service API, I am getting the following error:

elasticsearch.exceptions.AuthorizationException: AuthorizationException(403, '{"message":"\'ABcde#FgHijklMNopQrs\' not a valid key=value pair (missing equal-sign) in Authorization header: \'Basic ABcde#FgHijklMNopQrs\'."}')

The request that is causing this error is as follows:
curl -XPOST https://<aws-es-instance>:443/my_index/_search

Any solutions for this error?

Hi,
Continuing to the above, I have found out that the AWS ES URL does not need the port 443 to be provided to Authenticate the request.
Is there a way to instruct Elasticsearch config to not use the port when sending the authentication request?

Here is another update to the above.
I read about this exception in
https://github.com/sivasamyk/logtrail/issues/323
There the user has mentioned that the exception was avoided by removing the Authorization header.
Can anyone tell me how I can remove this header when connecting to ES?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.