GraphQL variables with non-ASCII contents will make Apollo Client request throw error
メンテナーはふだん 2 日以内に返信
@cdn34dd がすでに取り組んでいます。
2026年10月7日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- android, graphql, react-native, typescript
- 領域
- mobile, observability
調査の方向性
The crash is from putting GraphQL variables JSON (including emoji) into the _dd-custom-header-graph-ql-variables header that expo/fetch rejects on Android. Start in packages/react-native-apollo-client where variable tracking is configured and those custom headers are attached. Encode, strip, or skip non-ASCII header values for this path, then re-run an Apollo mutation with emoji in variables on Expo 57 Android.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
After upgrading Expo to 57 we noticed this Android error ApolloError: fetch failed: Call to function 'NativeRequest.start' has been rejected. when performing GraphQL mutations with variables that contain emoji's. I believe this happens because the default fetch package changed from RN fetch to expo/fetch in Expo version 56. expo/fetch uses different native request classes which only accepts ASCII chars in headers of requests on Android. It seems like that @datadog/mobile-react-native-apollo-client does not properly set or unset these headers for this type of request.
Reproduction steps
- Use Expo 57
- Use
@datadog/mobile-react-native-apollo-clientin Apollo client - Ensure variables are tracked
- Perform Apollo Client mutation on Android with emoji's inside variables
SDK logs
ApolloError: fetch failed: Call to function 'NativeRequest.start' has been rejected.
→ Caused by: java.lang.IllegalArgumentException: Unexpected char 0xd83d at 720 in _dd-custom-header-graph-ql-variables value: { [JSON with emoji @ char 720] }
at ApolloError (index.android.bundle:1:6655429)
at error (index.android.bundle:1:9155927)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at anonymous (index.android.bundle:1:8629368)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at anonymous (index.android.bundle:1:6605223)
at forEach (native)
at error (index.android.bundle:1:7956749)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at error (index.android.bundle:1:8653842)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at error (index.android.bundle:1:8653842)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at error (index.android.bundle:1:8637041)
at notifySubscription (index.android.bundle:1:4252026)
at error (index.android.bundle:1:6650787)
at anonymous (index.android.bundle:1:8633576)
at tryCallOne (InternalBytecode.js:1:1296)
at anonymous (InternalBytecode.js:1:4984)
Expected behavior
Apollo client requests should not fail because of dd graphql variable tracking.
Affected SDK versions
expo@57 + @datadog/[email protected]
Latest working SDK version
expo@55 + @datadog/[email protected]
Did you confirm if the latest SDK version fixes the bug?
Yes
Integration Methods
Yarn
React Native Version
No response
Package.json Contents
No response
iOS Setup
No response
Android Setup
No response
Device Information
No response
Other relevant information
No response
- 主要言語
- TypeScript
- スター
- 145
- フォーク
- 65
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataDog/dd-sdk-reactnative のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DataDog/dd-sdk-reactnative#1495 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
DataDog/dd-sdk-reactnative#1486 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
Expose Android app startup Activity filtering in the React Native SDK対応中かも @sbarrio が 7 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DataDog/dd-sdk-reactnative#1485 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Interaction tracking records nothing: the babel plugin's injected import makes Metro bundle a second copy of the SDK, so DdBabelInteractionTracking.config is set on a different class than instrumented handlers call対応中かも @cdn34dd が 7 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
DataDog/dd-sdk-reactnative#1377 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Babel plugin emits untransformed JSX when a tracked component has .map() children, breaking the Hermes build対応中かも @cdn34dd が 7 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
DataDog/dd-sdk-reactnative#1353 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
DataDog/dd-sdk-reactnative の issue をすべて見る
似ている issue
-
streams:add
難易度 2/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/rocketmq-dashboard#6872 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
interledger/publisher-tools#931 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ARTPARK-SAHAI-ORG/calibrate-frontend#727 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
fab-geocommuns/RNB-site#539 ·
メンテナーはふだん 2 日以内に返信