GraphQL variables with non-ASCII contents will make Apollo Client request throw error
Los mantenedores suelen responder en 2 días
@cdn34dd ya está trabajando en esto.
Desde el 7/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- android, graphql, react-native, typescript
- Área
- mobile, observability
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 145
- Forks
- 65
- Merge medio
- 2 d 16 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DataDog/dd-sdk-reactnative
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
DataDog/dd-sdk-reactnative#1486 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
-
Expose Android app startup Activity filtering in the React Native SDKPosiblemente ocupada @sbarrio la tomó hace 5 días. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
DataDog/dd-sdk-reactnative#1485 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
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 callPosiblemente ocupada @cdn34dd la tomó hace 5 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
DataDog/dd-sdk-reactnative#1377 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Babel plugin emits untransformed JSX when a tracked component has .map() children, breaking the Hermes buildPosiblemente ocupada @cdn34dd la tomó hace 5 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
DataDog/dd-sdk-reactnative#1353 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
iOS: network error events from JS-tracked requests bypass the drop_resource deduplication and cannot be filtered — expose a native error mapper?Posiblemente ocupada @marco-saia-datadog la tomó hace 5 días. Abiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
DataDog/dd-sdk-reactnative#1338 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de DataDog/dd-sdk-reactnative
Issues similares
-
Create/import wallet form shows raw "password must be at least 1 characters" instead of the translated messagePosiblemente ocupada @CapThunder19 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
joinmarket-webui/jam#1538 ·
Los mantenedores suelen responder en 1 día
-
t0ggles
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nolimits4web/swiper#8240 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelcontextprotocol/inspector#2723 ·
Los mantenedores suelen responder en 1 día
-
status:approved type:bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
egdev6/quorb#109 · 1 comentario ·
Los mantenedores suelen responder en 1 día