Output file always empty #46

Open
opened 2025-10-14 16:04:04 -06:00 by navan · 0 comments
Owner

Originally created by @xLinkOut on 7/31/2024

Hi, I'm using the mitmproxy2swagger 0.13.0 and mitmproxy 10.4.1, with Python 3.12.4. I'm currently excperience the following scenario:

  • Save mitmproxy flow to a pb.flow file (tested with either mitmproxy, mitmweb and mitmdump)
  • Run the following mitmproxy2swagger -i pb.flow -o pb.out -p https://<domain> -f flow --examples --headers, where I'm sure that requests to are in the flow file
  • The generated output does not contain any URLs, like:
openapi: 3.0.0
info:
  title: pb.flow Mitmproxy2Swagger
  version: 1.0.0
servers:
- url: https://<domain>
  description: The default server
paths: {}
x-path-templates:
# Remove the ignore: prefix to generate an endpoint with its URL
# Lines that are closer to the top take precedence, the matching is greedy
- ignore:/

Even if I delete the - ignore:/ and re-run the command, nothing change. If, in the first run, I set -p "" (as suggested in #29), in the output file there is a list of all domains from the flow file, but subsequently run of the same command, after remove the ignore for the domain of interest, produce the same output.

I've tried a lot of combinations (quote or not quote the api-prefix, save the flow with all mitmproxy suite, and so on). There is something I'm doing wrong? Thank you.

*Originally created by @xLinkOut on 7/31/2024* Hi, I'm using the mitmproxy2swagger 0.13.0 and mitmproxy 10.4.1, with Python 3.12.4. I'm currently excperience the following scenario: - Save mitmproxy flow to a `pb.flow` file (tested with either mitmproxy, mitmweb and mitmdump) - Run the following `mitmproxy2swagger -i pb.flow -o pb.out -p https://<domain> -f flow --examples --headers`, where I'm sure that requests to <domain> are in the flow file - The generated output does not contain any URLs, like: ``` openapi: 3.0.0 info: title: pb.flow Mitmproxy2Swagger version: 1.0.0 servers: - url: https://<domain> description: The default server paths: {} x-path-templates: # Remove the ignore: prefix to generate an endpoint with its URL # Lines that are closer to the top take precedence, the matching is greedy - ignore:/ ``` Even if I delete the `- ignore:/` and re-run the command, nothing change. If, in the first run, I set `-p ""` (as suggested in #29), in the output file there is a list of all domains from the flow file, but subsequently run of the same command, after remove the ignore for the domain of interest, produce the same output. I've tried a lot of combinations (quote or not quote the api-prefix, save the flow with all mitmproxy suite, and so on). There is something I'm doing wrong? Thank you.
Sign in to join this conversation.
No labels
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
enhancement
enhancement
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
github_actions
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
python
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/mitmproxy2swagger#46
No description provided.