Skip to content

plenary/curl : attempt to concatenate a table value #118

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

Closed
xavier-balesi opened this issue Jun 20, 2022 · 4 comments · Fixed by #125
Closed

plenary/curl : attempt to concatenate a table value #118

xavier-balesi opened this issue Jun 20, 2022 · 4 comments · Fixed by #125

Comments

@xavier-balesi
Copy link

I have an error when there is a list in somem field. The test in the repository doesn't pass : https://github.com/NTBBloodbath/rest.nvim/blob/main/tests/post_create_user.http

the error message is :

[rest.nvim] Failed to perform the request.
Make sure that you have entered the proper URL and the server is running.                                                                                                                                                                                                            
Traceback: ...site/pack/packer/start/plenary.nvim/lua/plenary/curl.lua:54: attempt to concatenate a table value

NeoVim version : v0.7.0
packer :

use { 'NTBBloodbath/rest.nvim',
    requires = { "nvim-lua/plenary.nvim" },
    config = function() require('configure.restvim') end
  }

configure.restvim :

require("rest-nvim").setup({
     -- Open request results in a horizontal split
    result_split_horizontal = false,
    -- Keep the http file buffer above|left when split horizontal|vertical
    result_split_in_place = false,
    -- Skip SSL verification, useful for unknown certificates
    skip_ssl_verification = false,
    -- Highlight request on run
    highlight = {
      enabled = true,
      timeout = 150,
    },
    result = {
      -- toggle showing URL, HTTP info, headers at top the of result window
      show_url = true,
      show_http_info = true,
      show_headers = true,
    },
    -- Jump to request line on run
    jump_to_request = false,
    env_file = '.httpenv',
    custom_dynamic_variables = {},
    yank_dry_run = true,
})

vimp = require('vimp')
vimp.nnoremap('<leader>œ', '<Plug>RestNvim')
@amiroslaw
Copy link

The same error with a boolean value.

@dsypasit
Copy link

same error when i use nest object
image
i got
image

@enribd
Copy link

enribd commented Jul 22, 2022

I'm facing the same issue in Neovim 0.7 with this json:

POST http://localhost:8080/validate
Content-Type: application/json

{
  "id": "xxxxx-xxxxx-xxxxx-xxxxx",
  "operation": "create",
  "book": {
    "title": "example",
    "series": "example series",
    "author": "anonymous",
    "tags": [
      "tag1",
      "tag2",
      "tag3"
    ]
  }
}

@llllOllOOll
Copy link

llllOllOOll commented Aug 3, 2022

I'm facing the same issue in Neovim v0.7.2 with this json:

image
image

Terminal: Alacritty / tmux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants