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

Trailing slash in api_url causes 404 #18

Closed
gardner opened this issue Oct 27, 2016 · 1 comment
Closed

Trailing slash in api_url causes 404 #18

gardner opened this issue Oct 27, 2016 · 1 comment

Comments

@gardner
Copy link
Contributor

gardner commented Oct 27, 2016

Removing the trailing slash from the config file fixes this.

Ubuntu Linux 16
Python: 2.7

<Response [404]>
Traceback (most recent call last):
  File "cachet_url_monitor/scheduler.py", line 77, in <module>
    scheduler = Scheduler(sys.argv[1])
  File "cachet_url_monitor/scheduler.py", line 50, in __init__
    self.configuration = Configuration(config_file)
  File "/home/gardner/cachet-url-monitor/cachet_url_monitor/configuration.py", line 84, in __init__
    self.status = get_current_status(self.api_url, self.component_id, self.headers)
  File "/home/gardner/cachet-url-monitor/cachet_url_monitor/configuration.py", line 56, in get_current_status
    raise ComponentNonexistentError(component_id)
configuration.ComponentNonexistentError: 'Component with id [1] does not exist.'

gardner pushed a commit to gardner/cachet-url-monitor that referenced this issue Oct 27, 2016
@mtakaki mtakaki closed this as completed Oct 28, 2016
@gardner
Copy link
Contributor Author

gardner commented Oct 28, 2016

Thanks for pulling this in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants