Skip to content

[bug]macOS + M1:配置 URL 重定向后,Webpack 热更新导致 Reqable 3.1.3 卡死 1 分钟 #2668

Description

@SunilWang

Describe the bug
在前端开发过程中,配置了 URL 重定向规则:将 https://example.com/* 重定向到本地开发服务器 http://127.0.0.1:8089/*,并排除 https://example.com/api/*。每次修改项目代码触发热更新(HMR)时,Reqable 会完全卡住约一分钟左右,之后才能恢复正常工作。期间无法进行抓包或任何操作。

To Reproduce
Steps to reproduce the behavior:

  1. 在 Reqable 中创建重定向规则:
    • 名称:前端代理
    • URL:https://example.com/*(通配符已启用)
    • 重定向到:http://127.0.0.1:8089/*
    • 排除URL:https://example.com/api/*(通配符已启用)
    • 不保留 Host 头部
  2. 启动前端项目本地开发服务器(127.0.0.1:8089),使用 Webpack 构建
  3. 在 Reqable 中开启抓包,确认正常拦截请求
  4. 修改项目中的任意文件,触发开发服务器热更新
  5. 观察 Reqable 界面,出现卡死/无响应状态,持续约 1 分钟
  6. 约 1 分钟后 Reqable 自动恢复正常,抓包功能继续工作

Expected behavior
项目热更新时,Reqable 应保持正常响应,不应出现长时间卡死或无响应的情况。或者至少能在较短时间内(如几秒)自动恢复。

Screenshots

Information

  • Platform: macos
  • OS: 15.5.1
  • Arch: arm (Apple Silicon M1)
  • App Version: 3.1.3 (197)

Additional context

  • 前端构建工具:Webpack
  • 卡住期间 Reqable 进程的 CPU 占用正常,没有异常飙升

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions