-
Notifications
You must be signed in to change notification settings - Fork 209
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
Cloud ID is not properly formatted #244
Comments
@stheobald Just want to make sure you are using the Cloud ID and not the name of your deployment. Your Cloud ID is formed with the name of your deployment, followed by a colon, then followed by a long base64 encoded payload. See this page for detailed instructions on where to find your cloud id. |
@miguelgrinberg Correct - as uplifted from the 'Cloud Id' (under the red square) by hitting the 'Copy' button. |
Then you must have made a mistake when you copy/pasted it, because the second part of the cloud id (after the colon) must have two >>> import base64
>>> cloud_id = "<paste your cloud id here>"
>>> name, payload = cloud_id.split(':')
>>> payload = base64.b64decode(payload)
>>> payload.split(b'$')
[b'us-east-2.aws.elastic-cloud.com:443', b'...', b'...'] The payload portion of the cloud id should decode to 3 parts. The first is the domain of your deployment. The other two are UUIDs. |
Using the Cloud ID found on my https://cloud.elastic.co/deployments/ page.
It seems that the client_utils.py may be expecting to find a '$' separator in part of the decoded id string.
This prevents ingesting data while attempting to connect to a cloud Elasticsearch instance.
The text was updated successfully, but these errors were encountered: