Error executing luv callback: Error in system on_stdout handler
judaew opened this issue · 3 comments
judaew commented
Error executing luv callback:
Error in system on_stdout handler
stack traceback:
vim/_editor.lua: in function 'notify'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/util.lua:16: in function 'sho
w'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/util.lua:31: in function 'esh
ow'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/provider.lua:263: in function 'on
_error'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/providers/openai.lua:81: in function 'fn'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/providers/util.lua:11: in function 'ite
r_sse_items'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/providers/openai.lua:65: in function 'on_
stdout'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/curl.lua:73: in function <...
/.local/share/nvim/lazy/llm.nvim/lua/llm/curl.lua:71>
[C]: in function 'xpcall'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/util/system.lua:48: in function <...
/.local/share/nvim/lazy/llm.nvim/lua/llm/util/system.lua:44>
stack traceback:
[C]: in function 'error'
.../.local/share/nvim/lazy/llm.nvim/lua/llm/util/system.lua:57: in function <...
/.local/share/nvim/lazy/llm.nvim/lua/llm/util/system.lua:44>
Version Neovim: v0.9.2
Version plugin: master
Package manager: lazy.nvim
Minimal init file:
-- options
-- keybinds
-- statusline
-- init lazy
require("lazy").setup({
{ "gsuuon/llm.nvim" },
})
judaew commented
I found the reason why this error occurs. My OpenAI account has run out of credits and after replenishment the problem disappeared. I think it would be good to handle such a case.
gsuuon commented
Thanks for reporting! Yes I'd consider this a bug since API errors should be propagating, I'll take a look.