Skip to content
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

Error with forked repo without changes. #653

Closed
carlosb1 opened this issue May 3, 2020 · 5 comments · Fixed by #661
Closed

Error with forked repo without changes. #653

carlosb1 opened this issue May 3, 2020 · 5 comments · Fixed by #661

Comments

@carlosb1
Copy link

carlosb1 commented May 3, 2020

Hi,
these last days I has been working with meilisearch to index information and links from Internet... It works perfectly when I run the docker (compiled) image but I can not use a forked version (no modified) from this repo... I only forked it a few days ago and I ran cargo run --release. But when I execute the index command:

⇒  curl -i -X POST 'http://127.0.0.1:7700/indexes' --data '{ "name": "Movies", "uid": "movies" }'
HTTP/1.1 400 Bad Request
content-length: 0
date: Sun, 03 May 2020 14:31:31 GMT

It doesn t work... it is curious, it is the same command that it works with the docker image... I have tired different things: remove caches, rebuilding, remove data.ms, run from docker or cargo... but same result... I will appreciate any help, the only reply that I receive from meilisearch:

[2020-05-03T14:31:31Z INFO actix_web::middleware::logger] 127.0.0.1:50760 "POST /indexes HTTP/1.1" 400 0 "-" "curl/7.58.0" 0.000170

@Kerollmops
Copy link
Member

Hey @carlosb1,

It seems like it is related to our switch to the actix web framework, we will look into this with @qdequele next week. I advise you to use the commit of a release (i.e. v0.10.1).

Thank you for the report!

@qdequele
Copy link
Member

qdequele commented May 3, 2020

Hello @carlosb1. Don't forget to add the Header to say that you're sending json body.
curl -i -X POST 'http://127.0.0.1:7700/indexes' -H "Content-Type: application/json" --data '{ "name": "Movies", "uid": "movies" }'

@carlosb1
Copy link
Author

carlosb1 commented May 3, 2020

Thanks! it works with the v0.10.1 I will use it temporally. also thanks for the fast feedback

@Kerollmops
Copy link
Member

@carlosb1 Did you try the quentin's response? Does it work?

@carlosb1
Copy link
Author

carlosb1 commented May 3, 2020

@Kerollmops I didn t need to include -H in the curl command... Directly, I changed branch... I can try to use master and the json flag if I have a gap.
Another point.. take care because it is not specified the header parameter in the README.md. (If you need for some MR, not problem)

This was referenced May 7, 2020
bors bot added a commit that referenced this issue Jan 16, 2023
653: Fix #652 - Change Spelling of `author` in `README.md` r=curquiza a=anirudhRowjee

# Pull Request

## What does this PR do?
Fixes #652
- Changes spellings of `au{hor` to `author`
- Minor formatting changes in Markdown

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?


Co-authored-by: Anirudh Rowjee <ani.rowjee@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants