curl parameters size limit
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- lua
- 領域
- networking
調査の方向性
Start at the plenary.curl entry point used by curl.post and reproduce the error with progressively larger request bodies. Trace where the "value too large" error originates, then document the effective limit or identify the change needed to support larger bodies.
索引モデルが issue の本文から書いたものです。
説明
Hello,
With the below code, If the body is very big, I get a "value too large" error.
After having put logging everywhere, I found that the error is thrown at the curl.post line, when the body is past to plenary.curl.
I think that there is a size limit for the body, but I don't know how where is that limit set.
What is exactly the limit?
local curl = require('plenary.curl')
local query = {}
function query.askCallback(res, opts)
-- Process res and opts
end
function query.ask(instruction, prompt, opts, api_key)
local url = 'https://generativelanguage.googleapis.com'
local path = '/v1beta/models/gemini-1.5-pro-latest:generateContent'
curl.post(url .. path,
{
headers = {
['Content-type'] = 'application/json',
['x-goog-api-key'] = api_key
},
body = json.encode(
{
-- Big, very big body
}),
callback = function(res)
vim.schedule(function() query.askCallback(res, opts) end)
end
})
end
return query
- 主要言語
- Lua
- スター
- 3.5k
- フォーク
- 341
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nvim-lua/plenary.nvim のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
nvim-lua/plenary.nvim#682 ·
-
uniform usage of `os.getenv`対応中かも @rakotomandimby が 124 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
nvim-lua/plenary.nvim#680 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
nvim-lua/plenary.nvim#675 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
nvim-lua/plenary.nvim#672 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
nvim-lua/plenary.nvim#671 · コメント 1 件 ·
nvim-lua/plenary.nvim の issue をすべて見る
似ている issue
-
bug good first issue ready ticket
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Domktorymysli/vclu#20 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
InauguralSystems/EigenLua#60 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
bradcypert/plum#265 ·
メンテナーはふだん 1 日以内に返信