rest-nvim / rest.nvim

A fast Neovim http client written in Lua
GNU General Public License v3.0
1.61k stars 142 forks source link

Error processing server response #266

Closed cyaconi closed 11 months ago

cyaconi commented 11 months ago

I'm not sure if this error is related to the latest update, however I started receiving it today:

Error executing vim.schedule lua callback: [string " ..."]:3: attempt to index a nil value
stack traceback:
    [string " ..."]:3: in function 'f'
    ...are/nvim.lazy/lazy/rest.nvim/lua/rest-nvim/curl/init.lua:151: in function ''
    vim/_editor.lua: in function <vim/_editor.lua:0>

The expected response is this:

[
  {
    "prompt": "You are about to say to the following channel:\nhello\n[\"chan1\"]\nAre you sure you want to continue? (y/n)",
    "function_id": "1234"
  }
]
cyaconi commented 11 months ago

Nevermind, it was a mistake in my lua script that happened after I got the response. Sorry about that!