mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-25 16:15:55 +03:00
[GH-ISSUE #1797] Support capturing traffic when using ofetch #1790
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1790
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TimvdEijnden on GitHub (Oct 5, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1797
Originally assigned to: @NghiaTranUIT on GitHub.
Description
Currently https://github.com/unjs/ofetch is not supported, which is used by nuxt 3.
Why this feature/change is important?
Before we were using axios which was supported.
Now we're ending up with these errors and cannot override requests:
@NghiaTranUIT commented on GitHub (Oct 6, 2023):
@TimvdEijnden can you try using the Automatic Setup to start the pre-configured Terminal app, then starting your local backend here.
This Terminal has a lot of Global HTTP, and HTTPS env, so it might work with the
ofetchout of the box.axiosis already worked.Docs: https://docs.proxyman.io/automatic-setup/automatic-setup
@TimvdEijnden commented on GitHub (Oct 6, 2023):
Yes I also tried the automatic setup, same issue
@NghiaTranUIT commented on GitHub (Oct 6, 2023):
@TimvdEijnden Can you show me your setup ?
I tested and Proxyman supports
ofetchout of the box.npm startofetchVideo:
https://github.com/ProxymanApp/Proxyman/assets/5878421/10f8b384-5ba8-4fba-aca2-c5dfd52b99e0
@TimvdEijnden commented on GitHub (Oct 6, 2023):
@NghiaTranUIT wow 🤩 thanks for quickly diving into it! I'll create a test nuxt 3 project and try again. Might be related to nuxt 3 instead of ofetch then.
@reslear commented on GitHub (Apr 28, 2024):
yes, Nuxt have a problem:
@TimvdEijnden commented on GitHub (Apr 29, 2024):
Yes I also tried with nuxt 3 and it does not boot up just like @reslear mentions.

@pi0 @danielroe Is there something I can do, I'm willing to dive into it and even make a PR if needed
@danielroe commented on GitHub (Apr 29, 2024):
@TimvdEijnden Not familiar with the problem here, so take this with a pinch of salt. If you're prepared to have a look, you might investigate the way we create a 'local fetch' with unenv. We mock internal network requests to avoid hitting the network layer.
Feel free to ping me if I can help with pointing you to the way fetch is architected, once you dig down deeper and start finding what's causing the error here. 🙏
@reslear commented on GitHub (May 1, 2024):
also u found http serve:
https://github.com/elk-zone/elk/blob/main/https-dev-config/local-https-server.mjs
github.com/unjs/nitro@aabdc9c5c7/src/runtime/entries/node-server.ts (L34)