martindstone / pagerduty-cli

A command line interface for PagerDuty
MIT License
91 stars 13 forks source link

Start web server for auth on another port if 8000 is in use #62

Open asportnoy opened 11 months ago

asportnoy commented 11 months ago

I often have a local server running on port 8000, which prevents me from using the web auth for the CLI until I stop the server. Please check that port 8000 is not in use before starting the server, and if it is, choose another port instead. Alternatively, you may want to just choose a different port instead of 8000 to use, maybe a random 5 digit port. Even if it's hardcoded, that would be much less likely to cause issues than a frequently used port like 8000.

asportnoy commented 2 months ago

Hi @martindstone, not sure if you saw this. Should be a pretty quick fix to just change it from 8000 to some other port.

jcalcada commented 1 month ago

I authenticate with just the API and it works fine. I suggest you do it that way (create an API key thats user based so that it picks up proper RBAC).