Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAR file saved from Fiddler throws error #12

Open
amit-potdar opened this issue Jun 24, 2020 · 0 comments
Open

HAR file saved from Fiddler throws error #12

amit-potdar opened this issue Jun 24, 2020 · 0 comments
Assignees

Comments

@amit-potdar
Copy link

amit-potdar commented Jun 24, 2020

ServerService-GetNavigationMenu2-fiddler.zip
ServerService-GetNavigationMenu2-ff.zip

Hi,

When we try to generate OpenAPI specification from HAR file that is saved from Fiddler, it throws syntax error ---
SyntaxError: Unexpected token  in JSON at position 0
at JSON.parse ()
at Avantation.run (C:/Users/amit.potdar/AppData/Roaming/npm/node_modules/avantation/lib/index.js:31:20)
at Avantation._run (C:/Users/amit.potdar/AppData/Roaming/npm/node_modules/avantation/node_modules/@oclif/command/lib/command.js:43:31)

I've attached the HAR file for replication.

The command I used on Windows 10 OS ---- avantation.cmd ServerService-GetNavigationMenu2-fiddler.har

However, when we save HAR file from browser via dev tool, we could generate OpenAPI specification successfully. I saved the file from firefox browser --- avantation.cmd ServerService-GetNavigationMenu2-ff.har

The difference I could see is fiddler minifies HAR file and browser doesn't.

Can you check this?

Thanks,
Amit

@anbuksv anbuksv self-assigned this Jan 6, 2021
Ross-ForAllSecure added a commit to Ross-ForAllSecure/avantation that referenced this issue Jul 13, 2023
…ime-types

Enable specifying accepted mimeTypes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants