[Python] How to learn Elasticsearch login and password

Discussão em 'Python' iniciado por Stack, Fevereiro 10, 2025.

  1. Stack

    Stack Membro Participativo

    I'm writing a site on Flask, connected by Elasticsearch, but when I log in to

    http: // localhost: 9200


    in the browser after connecting to it a window appears with the fields "username" and "password" enter image description here

    if I close this window, the following appears on the page:

    {"error":{"root_cause":[{"type":"security_exception",
    "reason":"missing authentication credentials for REST request [/]",
    "header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","ApiKey"]}}],
    "type":"security_exception","reason":"missing authentication credentials for REST request [/]",
    "header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","ApiKey"]}},"status":401}


    and accordingly the connection to Elasticsearch disappears

    Where can I find this data to connect?

    Continue reading...

Compartilhe esta Página