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

Special characters url not working when called from .http file #43

Closed
2 tasks done
GoldSucc opened this issue Sep 18, 2024 · 2 comments
Closed
2 tasks done

Special characters url not working when called from .http file #43

GoldSucc opened this issue Sep 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@GoldSucc
Copy link

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

0.10.1

Operating system/version

MacOS 14.6

Actual behavior

When url contains special characters like quotes it sends malformed request. I found solution to set variable by script and then use it with {{}}. Still would be good if I will be able to write requests with special characters, may be add option to escape speciall chars.

Expected behavior

URL working with special chars in it

Steps to reproduce

GET https://equipment-service.dest/sap/opu/odata/sap/API_EQUIPMENT/Equipment{{filter}}?$filter=Equipment eq '10000000'
it will not work

Other information

If used like this:

@lang lua

< {%
request.variables.set('filter', "?$filter=Equipment eq '10000000'")
%}

GET https://equipment-service.dest/sap/opu/odata/sap/API_EQUIPMENT/Equipment{{filter}}

it works, it means that generally api is working when proper url is passed, problem is parser, may be tree sitter part, may be consumer of tree sitter. if I will have enough free time, may be I will look into it by myself

Repro (lazy.nvim)

No response

@GoldSucc GoldSucc added the bug Something isn't working label Sep 18, 2024
@boltlessengineer boltlessengineer transferred this issue from rest-nvim/rest.nvim Sep 20, 2024
@boltlessengineer boltlessengineer self-assigned this Sep 20, 2024
@boltlessengineer
Copy link
Contributor

This seems to be a treesitter parser issue.
I’ll fix it tonight and it can take 1~2 days until you can install latest version from nvim-treesitter or luarocks

@GoldSucc
Copy link
Author

@boltlessengineer Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants