Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] Android: Apps page can reject a valid workspace 200 ("no response was produced")

Aperta Adatta ai principianti
#215 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react-native, typescript
Ambito
mobile

Direzione di ricerca

Inizia leggendo il percorso della richiesta del workspace Android e l’implementazione streaming-fetch di @copilotkit/react-native; l’issue identifica il report upstream CopilotKit/CopilotKit#8099 e il controllo di sicurezza readyState che fallisce. Riproduci il problema aprendo Apps o aggiornando su Android con le versioni di Expo e React Native indicate. Il lavoro è completato quando una risposta HTTP 200 valida carica il workspace in modo affidabile; l’issue suggerisce un aggiornamento di una dipendenza o una patch del package.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happened?

On Android, opening Apps (or refreshing the workspace) intermittently shows a red error instead of the app list:

TypeError: Network request to https://<app-host>/api/workspace completed with status 200 but no response was produced. This may indicate a CORS failure, DNS error, or React Native networking issue.

The server did return the workspace JSON: the access log shows GET /api/workspace 200 527 with user agent okhttp/4.12.0. Web and iOS are fine; Android hits it intermittently.

Expected: Apps loads the workspace.
Actual: the request rejects even though the server returned 200.

Steps to reproduce
  1. Build the Android app from main with Expo SDK 54 / RN 0.81.5 / @copilotkit/[email protected].
  2. Sign in with a live workspace access key.
  3. Open Apps or refresh the workspace a few times (the failure is intermittent).
  4. The red TypeError appears instead of the app list.
Commit or release

main at 2026-10-28 (app.json version 0.1.0, versionCode 1).

Platform

Android

Environment and safe logs
  • Android 14/15 emulator, x86_64, Hermes, new architecture
  • OkHttp 4.12.0
  • @copilotkit/[email protected]
  • Server access log: GET /api/workspace 200 527 "okhttp/4.12.0"
  • No credentials or private data included
Root cause / upstream issue

This is a downstream manifestation of a bug in @copilotkit/react-native's XHR streaming-fetch polyfill. On Android, XHR can jump from readyState 1 to 4; the safety net in src/streaming-fetch.ts runs before the Response object is constructed and treats a valid 200 as "no response produced".

Upstream report with code, reproduction and a one-line fix: CopilotKit/CopilotKit#8099.

Workaround

Patch the installed package's streaming-fetch (source + dist/streaming-fetch-*.mjs / .cjs):

- if (readyState === 4 && !settled && !resp) {
+ if (readyState === 4 && !settled && !resp && xhrStatus === 0) {

Then rebuild the Android JS bundle. We applied this locally and Apps loads reliably on Android 15.

A patch-package/postinstall patch or a dependency bump once upstream is fixed would make the APK robust for other Android users.

Lingua principale
TypeScript
Stelle
5.6k
Fork
797
Merge medio
4g 8h
PR unite (30g)
67

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CopilotKit/openmuse

Tutte le issue di CopilotKit/openmuse

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.