react / react/react-native

Preview unavailable coming in DevTools

未关闭
#55,764 11 条评论 12 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Debugging Resolution: Fixed
主要语言
C++
星标
127k
派生
25.3k
平均合并
1 天 23 小时
30 天内合并 PR
4

描述

Description
Image

Getting Preview Unavailabe for post request.

Steps to reproduce
  1. Open DevTools.
  2. Call any post api with some payload.
  3. In DevTools, network > Payload, [Preview unavailable] is coming.
React Native Version

0.83.1

Output of npx @react-native-community/cli info
System:
  OS: macOS 26.1
  CPU: (8) arm64 Apple M2
  Memory: 139.53 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.19.0
    path: /Users/ashish/.nvm/versions/node/v22.19.0/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.9.3
    path: /Users/ashish/.nvm/versions/node/v22.19.0/bin/npm
  Watchman:
    version: 2025.05.26.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/ashish/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.1
      - iOS 26.1
      - macOS 26.1
      - tvOS 26.1
      - visionOS 26.1
      - watchOS 26.1
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 26.1/17B55
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.1.4
    path: /Users/ashish/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.2.0
    wanted: ^19.2.0
  react-native:
    installed: 0.83.1
    wanted: ^0.83.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 DevTools 中打开 Network > Payload,并发送一个带有 payload 的 POST 请求,以重现该问题。将受影响的请求与可用预览的请求进行比较;当 POST 请求的 payload 显示预览而不是“Preview unavailable”时即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native
领域
devtools, mobile-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。