Comments (6)
Sorry I don't know, so far the plugin works perfectly for me. I tried to do the same query as you, but with https://google.com
GET https://www.google.com
The response was OK, so I'm not sure if this is still a problem relevant to the plugin itself. Maybe it's related the web app your interfacing with, but I still haven't done any POST requests with JSON bodies so, I don't know.
from rest.nvim.
This is also the case for me, but I found a work around for my system. I looked at the Neovim :checkhealth rest-nvim
entries for rest-nvim and manually installed all the dependencies mentioned in the opts
table using luarocks
.
cd $HOME
luarocks --local --lua-version=5.1 install xml2lua
luarocks --local --lua-version=5.1 install lua-curl
luarocks --local --lua-version=5.1 install mimetypes
This should create a directory in your home called ~/.luarocks
and neovim should not emit any more errors afterwards.
Because I use Arch Linux
my Lua version is updated to 5.4
but I think this plugin requires Lua version 5.1
according to the error logs. Not sure though.
Error: Failed installing dependency: https://luarocks.org/lua-curl-0.3.13-1.src.rock - Build error: Lua header lua.h found at /usr/include does not match Lua version 5.1. You can use
luarocks config variables.LUA_INCDIR <path>
to set the correct location.
from rest.nvim.
Thanks! I checked the health of rest.nvim and found that it installs xml2lua:
==============================================================================
rest-nvim: require("rest-nvim.health").check()
Installation ~
- OK Found `luarocks` installed in your system
- OK Found Luarocks PATHs in your Neovim's Lua `package.path`
- OK Dependency `nvim-treesitter` was found
- OK Dependency `mimetypes` was found
- OK Dependency `xml2lua` was found
- OK Dependency `nvim-nio` was found
- OK Dependency `lua-curl` was found
- OK Tree-sitter `http` parser is installed
Configuration ~
- OK No unrecognized configuration options were found
- OK Formatter for `html` is set to `tidy` and rest.nvim found it in your system
- OK Formatter for `json` is set to `jq` and rest.nvim found it in your system
But when I make a request I still get the same error:
GET http://localhost:8080/
HTTP/1.1 200 OK
#+RES
Config: missing or malformed argument for option: show-body-only
Error: Can't open "auto"
#+END
There was a similar issue but they solved it by manually setting luarocks to install. Which I also do in the configuration above.
Do you know what I can look into next to solve the issue?
from rest.nvim.
Related Issues (20)
- `H` and `L` inside result window completely override my movement commands HOT 1
- [Bug] Can not import file as request body
- (bug): Cannot change my buffers using Shift h l HOT 4
- bug: broken query parameters HOT 4
- V2.0 not running asynchronously HOT 5
- (feature): Save the response as files.
- Swagger support
- telescope extension not working HOT 1
- How to pretty print a json response? HOT 4
- Can't post form-urlencoded data HOT 1
- TreeSitter highlighting for response HOT 6
- Plugin not working in Lunarvim HOT 2
- No longer working with cookies.
- Error when `Rest run` apparently with Treesitter http HOT 10
- Issue with finding lib-curl HOT 7
- Bug. The empty parameter still doesn't seem to work HOT 3
- HTTP calls block UI thread (async issue) HOT 1
- Null values not included in the request with json body HOT 2
- [Bug] Can't recognize the variable in header HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rest.nvim.