Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] `node-fetch` support broken in v5.4.0 - Cannot read properties of undefined (reading 'substring')

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
nodejs, typescript
領域
api, backend

調査の方向性

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 はありません

環境構築

はじめの一歩

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

subquery/subql のほかの issue

subquery/subql の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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