[Bug] `node-fetch` support broken in v5.4.0 - Cannot read properties of undefined (reading 'substring')
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- nodejs, typescript
調査の方向性
No source file or test is named. Start by reproducing an external API request with node-fetch in a SubQuery Cosmos project, then compare the sandbox or runtime behavior between v5.3.0 and v5.4.0. Done means fetch operations work without the substring error, or the supported migration path is documented.
索引モデルが issue の本文から書いたものです。
説明
Description
After upgrading to subquerynetwork/subql-node-cosmos:v5.4.0, the previously working node-fetch logic in the project started failing.
Downgrading to v5.3.0 resolves the issue, confirming a regression introduced in v5.4.0.
Error Message
2026-04-06T10:22:14.623Z <sandbox-#4> ERROR Indexer revalidate error: Cannot read properties of undefined (reading 'substring')
Environment
- Indexer image:
subquerynetwork/subql-node-cosmos:v5.4.0 - Working version:
v5.3.0
Steps to Reproduce
Make an external API request using node-fetch inside the runtime code of a SubQuery Cosmos project.
Expected Behavior
fetch (or node-fetch) should work as it did in v5.3.0 without throwing substring errors.
Question
How should fetch operations be properly supported in the latest version? Is there a recommended replacement (e.g., native fetch or another approach) for making external API calls in the runtime?
Additional Context
This seems related to changes in the sandbox or runtime environment between v5.3.0 and v5.4.0. Any guidance on the correct migration path would be appreciated.
- 主要言語
- TypeScript
- スター
- 18.7k
- フォーク
- 395
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
subquery/subql のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
似ている issue
-
priority: P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
prime-radiant-inc/evener#3291 ·
メンテナーはふだん 1 日以内に返信
-
accessibility bug revealjs
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
quarto-dev/quarto-cli#14961 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
supabase/agent-skills#614 ·
-
Content
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RunestoneInteractive/rs#1559 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信