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

API Testing Error #45

Closed
puriaayush01 opened this issue Feb 2, 2024 · 5 comments
Closed

API Testing Error #45

puriaayush01 opened this issue Feb 2, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@puriaayush01
Copy link

I'm encountering an error whenever I attempt to test an API (which is an open-source API). However, when I utilize the following link (https://petstore.swagger.io/v2/swagger.json), the OFFAT Tool functions properly. Could you kindly assist me with resolving this issue?

Error-OFFAT
@dmdhrumilmistry
Copy link
Collaborator

Hey @puriaayush01,

From image I can see that you're currently using python version 3.12. I've recently discovered that packages that we're using is crashing due to bug mentioned here.

You try using offat with python 3.11 until this is resolved.

Marking this as resolved for now. If you're still facing issues then feel free to reopen this one.

@dmdhrumilmistry dmdhrumilmistry self-assigned this Feb 2, 2024
@dmdhrumilmistry dmdhrumilmistry added the bug Something isn't working label Feb 2, 2024
@dmdhrumilmistry
Copy link
Collaborator

This issue has been resolved. Please install latest version of the tool from pypi.

@puriaayush01
Copy link
Author

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

@puriaayush01
Copy link
Author

@dmdhrumilmistry Is there an issue if I use another API for testing? Because I don't get any issue when I am using the https://petstore.swagger.io/v2/swagger.json file.

@dmdhrumilmistry
Copy link
Collaborator

dmdhrumilmistry commented Feb 7, 2024

This seems like parsing issue, I've made several changes to the tool in order fix dependency blocking issue by writing a new parser for openapi and swagger file. Make sure your swagger file contains url/hosts in it. It would be better if you can share your swagger file.

I've created a new issue for the error that you're facing.

You can track this issue from here

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