Skip to content

Output file always empty #173

@xLinkOut

Description

@xLinkOut

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions