-
-
Notifications
You must be signed in to change notification settings - Fork 147
use content-type:
, other casing doesn't work
#157
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
Comments
Same issue |
Can be related to #114 because I got this issue after installing today for the first time. |
Same here. This project seems to be a bit abandoned :( |
I think this is related to the PR #142 in this thread #141 (comment), which makes "Content-Type: application/json" couldn't be recognized and the brace around the raw body will be removed when calling curl. |
It does seem abandoned. If you see the branch document-competition there is an alternative Hurl that seems a lot more mature, although it is not specifically for Neovim. |
for those looking for a quick work-around, replace |
That branch got merged hence the "competition" appears at https://github.com/rest-nvim/rest.nvim#related-software . |
Did you consider utilizing Hurl as a request engine, instead of the current one? |
This is what works for me! |
content-type:
, other casing doesn't work
I am testing hurl at the moment but note that I am not the creator of the plugin. I just added 2/3 commits to fix issues as I use this plugin in my work. I prefer to keep the work to a minimum though I would be curious to experiment with teal for this plugin.
The benefits of neovim integration is to be able to run inline lua code as done #122. Not something that hurl can do. I would be curious in your feedback running hurl-based request with flow.nvim. For me the real issue is the absence of testing, once this is fixed (and I've done mmuch progress if you look at main in that regard), we should be much better off. This issue is my current priority. |
I was thinking about a hurl plugin for neovim but I don´t like the fact that hurl runs the whole file and I want to be able to have a single Also, hurl introduces too much syntax that is not exactly pure HTTP, the best thing in rest-nvim is that it is a pure http request format. |
we special case json when checking the payload body via encoding/decoding it. This is done by checking the "content-type" in: rest-nvim#157 There doesn't seem to be a need for that other than possibly validate the payload ? in which case we should implement something more generic.
@rochacbruno I haven't upgraded my fork of #174 in a long time. Right now I am testing hurl. I've opened #195 in case you are interested |
I used rest.nvim couple of weeks ago and everything was fine. However it doesn't work anymore and I have no idea why.
This is my request:
I use Rust - actix-web framework. It says
Error in response: Deserialize(Error("expected value", line: 1, column: 1))
Btw, everything is okay in Insomnia and Postman
The text was updated successfully, but these errors were encountered: