-
Notifications
You must be signed in to change notification settings - Fork 251
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
Python code hangs - needs the 'aSampleMasterKey' API key #2499
Comments
Hi @RGGH! Thanks for creating this issue! @meilisearch/integration-team, what do you think? None of the Quick start SDK samples use |
@alallema does the python SDK allow starting the client with no master key? |
I think every SDK's code-sample should be updated to add This is the curl code-sample curl \
-X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer aSampleMasterKey' \
--data-binary @movies.json These is the JS for example: const client = new MeiliSearch({ host: 'http://localhost:7700' })
client.index('movies').addDocuments(movies)
.then((res) => console.log(res)) From those I checked, none of the languages include that apiKey in their getting started code-samples. |
I don't get it sorry :/ We support the integrations to be instantiated without a key, like meilisearch itself. If this is not a bug on the Python side, why should we update the code samples? |
537: Update getting_started code-samples r=brunoocasali a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
1529: Update getting_started code-samples r=bidoubiwa a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
1529: Update getting_started code-samples r=bidoubiwa a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
490: Update getting_started code-samples r=bidoubiwa a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Yes, like almost SDK I think.
Perfect! |
792: Update getting_started code-samples r=alallema a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: alallema <amelie@meilisearch.com> Co-authored-by: Amélie <alallema@users.noreply.github.com>
328: Update getting_started code-samples r=brunoocasali a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: Ahmed Fwela <63286031+ahmednfwela@users.noreply.github.com>
490: Update getting_started code-samples r=bidoubiwa a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
619: Update getting_started code-samples r=alallema a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: alallema <amelie@meilisearch.com>
450: Update getting_started code-samples r=alallema a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: alallema <amelie@meilisearch.com>
441: Update getting_started code-samples r=alallema a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: Amélie <alallema@users.noreply.github.com> Co-authored-by: alallema <amelie@meilisearch.com>
451: Update getting_started code-samples r=brunoocasali a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
390: Update getting_started code-samples r=brunoocasali a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [documentation issue](meilisearch/documentation#2499). The `api_key` field is missing in the instantiation of the client in the getting started samples. Add `aSampleMasterKey` as the `api_key`. cURL example: ```bash curl \ -X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer aSampleMasterKey' \ --data-binary `@movies.json` ```` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com> Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
All the PRs were closed, so no more missing keys in the quickstart guide. @guimachiavelli I'll close this, but I think we need to trigger a new docs version to see it in production :) Thanks @bidoubiwa and @RGGH for the report 🎉 |
https://www.meilisearch.com/docs/learn/getting_started/quick_start
The Python script never completes with the copy/paste code, might confuse beginners!
should read:
client = meilisearch.Client('http://127.0.0.1:7700', 'aSampleMasterKey')
not
client = meilisearch.Client('http://localhost:7700')
The text was updated successfully, but these errors were encountered: