martindstone / pagerduty-cli

A command line interface for PagerDuty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

asportnoy opened this issue · comments

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.

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

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).