joolfe / postman-to-openapi

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

Invalid URL in CLI #205

Closed ardionoroma closed 1 year ago

ardionoroma commented 1 year ago

I keep got "Invalid URL" message while converting the Postman collection using CLI

~/p2o$ pwd
/home/roma/p2o
~/p2o$ ls -a
. .. general.json
~/p2o$ p2o general.json -f result.yml
TypeError [ERR_INVALID_URL]: Invalid URL
~/p2o$ p2o ./general.json -f result.yml
TypeError [ERR_INVALID_URL]: Invalid URL
~/p2o$ p2o /home/roma/p2o/general.json -f result.yml
TypeError [ERR_INVALID_URL]: Invalid URL

How the path of the json collection should be like? I'm using p2o version 2.4.1 with environment Ubuntu 20.04

ardionoroma commented 1 year ago

Sorry for the inconvenience, i forgot to replace environment variables inside my postman collection.