We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NVIM v0.10.2
OS: Arch Linux x86_64 | Kernel: 6.11.4-arch2-1
When executing the following http request:
POST /v1/image/ HOST: http://localhost:8000 X-AUTH: {{TOKEN}} Content-Type: multipart/form-data; boundary=WebAppBoundary --WebAppBoundary Content-Disposition: form-data; name="file"; filename="logo.png" < /entire/path/to/file/logo.png --WebAppBoundary--
I receive the following response:
### v1-auth#49 POST http://localhost:8000/v1/image/ HTTP/1.1 400 Bad Request # @_RES (formatted) { "detail": "Empty content" } # @_END
The reason is that the data of the request is going empty, as shown in the debugging session (the server is being implemented in Django btw):
data
But the request follows the jetbrains guidelines, so i'm not sure if its not supported.
The request should send the file to the server in the data object. Which is postman's behavior.
Run the base project with repro with nvim -u repro.lua and then run the following test file with :Repo run:
nvim -u repro.lua
:Repo run
POST /v1/image/ HOST: http://localhost:8000 X-AUTH: XXXXXXX Content-Type: multipart/form-data; boundary=WebAppBoundary --WebAppBoundary Content-Disposition: form-data; name="file"; filename="logo.png" < /entire/path/to/file/logo.png --WebAppBoundary--
rest.nvim package version: version 3.8.3 tag v3.8.3 branch main commit 113dce7
*ps: thanks for the great plugin. Best regards.
lazy.nvim
vim.env.LAZY_STDPATH = ".repro" load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))() require("lazy.minit").repro({ spec = { "rest-nvim/rest.nvim", { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", main = "nvim-treesitter.configs", opts = { ensure_installed = { "http" }, sync_install = false, highlight = { enable = true }, indent = { enable = true }, }, }, }, })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prerequisites
Neovim Version
NVIM v0.10.2
Operating system/version
OS: Arch Linux x86_64 | Kernel: 6.11.4-arch2-1
Actual behavior
When executing the following http request:
I receive the following response:
The reason is that the
data
of the request is going empty, as shown in the debugging session (the server is being implemented in Django btw):But the request follows the jetbrains guidelines, so i'm not sure if its not supported.
Expected behavior
The request should send the file to the server in the
data
object. Which is postman's behavior.Steps to reproduce
Run the base project with repro with
nvim -u repro.lua
and then run the following test file with:Repo run
:Other information
rest.nvim package version:
version 3.8.3
tag v3.8.3
branch main
commit 113dce7
*ps: thanks for the great plugin. Best regards.
Repro (
lazy.nvim
)The text was updated successfully, but these errors were encountered: