# 无法看到 NodeJS、Python 或 Ruby 脚本中的任何 HTTP 流量

> NodeJS、Python、Ruby 或 Golang 的请求没有显示在 Proxyman 中？可一键通过 Automatic Setup 抓包，或在 macOS 26 上使用 Network Extension 抓取。

## 1. 问题 {#1-problem}

* 我的 NodeJS、Ruby、Python 或 Golang 脚本或服务器会发起 HTTP/HTTPS 请求，但在 Proxyman 应用中看不到任何流量。

例如： 

* NodeJS：我使用 [axios](https://github.com/axios/axios) 库调用生产服务器上的 REST API（例如 https://mycompany.com/v1/data），但 Proxyman 没有记录任何流量。
* 我在 Golang 中使用 net/http，但 Proxyman 中没有出现任何请求。
* ……等等。

> **备注:** 可以尝试 [Network Extension](https://proxyman.com/docs/zh-cn/advanced-features/network-extension)，无需在每个库中设置代理，即可抓取你 Mac 上运行的脚本发出的 HTTP/HTTPS 请求。如果出现 SSL 错误，请使用 [Automatic Setup](https://proxyman.com/docs/zh-cn/automatic-setup/automatic-setup) 为受支持的库设置证书信任。
>
> Network Extension 目前为 BETA 版，需要 Proxyman PRO 以及 macOS 26 或更高版本。

## 2. 全新的自动方案（v4.7.0 或更高版本）✅ {#2-new-automatic-solution-v470-or-later-}

Proxyman v4.7.0 或更高版本可以一键抓取来自 Python、Ruby、NodeJS 和 Golang 的 HTTP/HTTPS 流量。

* 一键完成：无需手动设置 HTTP 代理，也无需手动信任自签名证书。
* 支持 NodeJS、Python、Ruby 和 Golang 的众多网络库。

### 2.1 使用方法 {#21-how-to-use}

1. 打开 Proxyman -> **Setup** 菜单 -> **Automatic Setup…**
2. 点击 **Open New Terminal…**

![Proxyman Automatic Setup 窗口，包含用于 NodeJS、Ruby、Python 和 Golang 脚本的 Open New Terminal 按钮](https://proxyman.com/docs/assets/proxyman-automatic-setup-window.jpg)

_启动预配置的终端_

3. 如有需要，请接受 AppleScript 的权限提示。
4. 系统会打开一个新的终端窗口。在该终端中启动你的 Python 后端服务器或运行脚本，Proxyman 会抓取它们的全部流量。

![Proxyman 抓取使用 net/http、fasthttp、resty 和 gorequest 的 Go 脚本发出的 HTTPS 请求](https://proxyman.com/docs/assets/CleanShot%202025-03-18%20at%2009.56.44%402x.jpg)

_抓取 Ruby、Python、NodeJS 和 Golang 服务器及脚本中的 HTTPS 流量_

5. 完成 ✅

## 3. 其他问题 {#3-other-problems}

### 3.1 无法看到 NextJS Server Component 中的 `fetch()` 请求 {#31-i-cant-see-any-fetch-request-from-a-nextjs-server-component}

* 请参阅这篇博客文章：[在 NextJS Server Components 中抓取 HTTPS](https://proxyman.com/posts/2024-06-10-Capture-HTTPS-From-NextJS-Server-Components)

## 了解更多 {#learn-more}

* [在 NodeJS 中使用 Axios 抓取 HTTP/HTTPS 请求](https://proxyman.com/posts/2023-05-14-Capture-HTTP-HTTPS-Request-From-Axios-NodeJS)
* [抓取 Ruby net/http 的 HTTP/HTTPS 请求和响应](https://proxyman.com/posts/2023-05-09-Capture-HTTP-HTTPS-Request-Response-From-Ruby-Net-HTTP-library)
* [使用 Python Requests 和 HTTPX 抓取 HTTPS 流量](https://proxyman.com/posts/2025-01-29-How-To-Capture-HTTPS-Traffic-From-Python-Requests-httpx)
