Closed piersolenski closed 1 month ago
I have the same problem when setting url as a header value. It seems like :
and /
are not allowed in value as well
Example:
###
POST {{BASE_URL}}/registration/registration
Content-Type: application/json
Origin: https://example.com
{
"hello": "world"
}
Error messages:
[rest.nvim] ERROR: The tree-sitter node at the range [4:8 - 16] has a syntax error and cannot be parsed
[rest.nvim] ERROR: The tree-sitter node at the range [4:8 - 16] has a syntax error and cannot be parsed
Error executing Lua callback: .../share/nvim/lazy/rest.nvim/lua/rest-nvim/parser/init.lua:114: attempt to index local 'req_node' (a nil value)
stack traceback:
.../share/nvim/lazy/rest.nvim/lua/rest-nvim/parser/init.lua:114: in function 'traverse_request'
.../share/nvim/lazy/rest.nvim/lua/rest-nvim/parser/init.lua:430: in function 'parse'
...al/share/nvim/lazy/rest.nvim/lua/rest-nvim/functions.lua:61: in function 'exec'
...cal/share/nvim/lazy/rest.nvim/lua/rest-nvim/commands.lua:44: in function 'impl'
...cal/share/nvim/lazy/rest.nvim/lua/rest-nvim/commands.lua:182: in function <...cal/share/nvim/lazy/rest.nvim/lua/rest-nvim/commands.lua:165>
I'm getting an error when trying to use
=
inside myAuthorisation
value.For example, using;
results in:
This seems related to https://github.com/rest-nvim/tree-sitter-http/pull/23 where it mentions
=
being disabled for URLs.