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

Host/Server Parsing Bug leading to scan crash #52

Closed
dmdhrumilmistry opened this issue Feb 7, 2024 · 4 comments
Closed

Host/Server Parsing Bug leading to scan crash #52

dmdhrumilmistry opened this issue Feb 7, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@dmdhrumilmistry
Copy link
Collaborator

          Hi @dmdhrumilmistry . As per your suggestion I have tried using offat with Python 3.11. But Unfortunately I am getting the same error:
image

Originally posted by @puriaayush01 in #45 (comment)

@puriaayush01
Copy link

Hi, @dmdhrumilmistry I am sharing the JSON file with you. Please verify from your end as well.
api.json

@dmdhrumilmistry
Copy link
Collaborator Author

Hey @puriaayush01

The file that you've provided is not a valid openapi/swagger documentation file. I would suggest to review openapi/swagger documentation for creating api documentations.

@puriaayush01
Copy link

Hey @dmdhrumilmistry . I am using the VAmPi Open API Swagger file to test. Is this not valid?

image image

@dmdhrumilmistry
Copy link
Collaborator Author

dmdhrumilmistry commented Feb 9, 2024

Hey @dmdhrumilmistry . I am using the VAmPi Open API Swagger file to test. Is this not valid?
image image

I believe you've mistakenly attached postman documentation. The snippets you've attached is missing server urls so tool doesn't know where to send requests. You need to add server urls to the documentation.

servers:
  - url: https://{IP}:{PORT}/{API_BASEPATH}

Note: Replace variables with your values.

You can use Swagger editor for making necessary changes (It might convert your json file to yaml format)

You can use the openapi documentation after adding server urls.

@dmdhrumilmistry dmdhrumilmistry changed the title Parsing Error Host/Server Parsing Bug leading to scan crash Feb 9, 2024
@dmdhrumilmistry dmdhrumilmistry added the bug Something isn't working label Feb 9, 2024
@dmdhrumilmistry dmdhrumilmistry self-assigned this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants