the code-connect fetch timeout is too short

オープン
#336 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
node.js, typescript
領域
cli, networking

調査の方向性

Start by locating the fetch implementation corresponding to node_modules/@figma/code-connect/dist/common/fetch.js in the repository, then read how CLI options are defined and passed to fetch. Check the existing fetch tests and add coverage for configuring the connection timeout; done means users can set the timeout and the tests verify it is applied.

索引モデルが issue の本文から書いたものです。

説明

API question

Please provide:

  • Code Connect CLI version [use npx figma -V if using React, or figma -V otherwise, to get the version of your CLI]
    v1.3.6
  • Operating system: WLS under windows

The fetch timeout is too short, it get timeout even I set batch size to 1

in the node_modules/@figma/code-connect/dist/common/fetch.js file I have to manually add

const customAgent = new undici_1.Agent({
  connect: {
    // Set the connection timeout to 30,000 ms (30 seconds)
    timeout: 30_000,
  }
});

then in the code where the fetch call is executed

const response = await fetch(url, { ...options, method, dispatcher:customAgent });

Please allow us to set the timeout value

主要言語
TypeScript
スター
1.6k
フォーク
126
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

figma/code-connect のほかの issue

figma/code-connect の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。