joolfe / postman-to-openapi

🛸 Convert postman collection to OpenAPI
MIT License
577 stars 99 forks source link

Cannot read property 'startsWith' of undefined at scrapeURL #268

Open hmz-jer opened 7 months ago

hmz-jer commented 7 months ago

Hello,

I'm encountering an issue with postman-to-openapi when attempting to convert a Postman collection to an OpenAPI specification. The error message is as follows:

TypeError: Cannot read property 'startsWith' of undefined
    at scrapeURL (/path/to/node_modules/postman-to-openapi/lib/index.js:411:28)

This error occurs during the conversion process and seems to be related to handling URL data within the library. I have validated that my Postman collection is correctly formatted and contains the necessary information.

Could you please assist in resolving this error? Is there a known issue or workaround for this problem? Any guidance or updates to address this would be greatly appreciated.

Thank you for your assistance.

cunkz commented 7 months ago

Maybe can you give us some example of your collection ?