question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

api_url is incorrect when CachetHQ send a email in button "manage subscriptions"

See original GitHub issue

with the following docker-compose (I’m behind a reverse proxy: traefik)

version: "3"

services:
  postgres:
    image: postgres:10-alpine
    volumes:
      - ./db_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=postgress
      - POSTGRES_PASSWORD=postgress
      - POSTGRES_DB=postgress
    networks:
      - cachethq_internal
    restart: always

  cachet:
    image: cachethq/docker:2.3-latest
    networks:
      - ak_cachethq_outside
      - ak_cachethq_internal
#    environment:
#...
    depends_on:
      - postgres
    restart: always
  cachet_url_monitor:
    image: mtakaki/cachet-url-monitor
    networks:
      - ak_cachethq_internal
    depends_on:
      - cachet
    volumes:
      - ${PWD}/.config.yml:/usr/src/app/config/config.yml:ro
    restart: always

networks:
  cachethq_outside:
    external:
      name: traefik_proxy
  cachethq_internal:
    driver: bridge

And the following configuration:

endpoint:
  url: https://myworpresspage.com
  method: GET
  timeout: 1 # seconds
  expectation:
    - type: HTTP_STATUS
      status_range: 200-300
    - type: LATENCY
      threshold: 1
    - type: REGEX
      regex: ".*WORDPRESS FOOTER HOOK.*"
  allowed_fails: 0
cachet:
  api_url: http://cachet:8000/api/v1
  token: xxxxxxxxxxxxxxxxxxx
  component_id: 1
  metric_id: 1
  action:
    - CREATE_INCIDENT
    - UPDATE_STATUS
  public_incidents: true
frequency: 30
latency_unit: ms

It works perfectly, but when cachetHQ sends an email, in the URL inside the email, redirects me to http://cachet:8000/subscribe/manage/xxxxxxx instead of https://status.myworpresspage.com/subscribe/manage/xxxxxxx in button “manage subscriptions”

I do not understand the API very well, but you could place an API URL and a LINK (A hyperlink to the component)???

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thomvaillcommented, Feb 28, 2020

I had the same issue, because APP_URL / Site URL is not taken into account. Here is an ugly hotfix: https://github.com/CachetHQ/Cachet/issues/3952

0reactions
mtakakicommented, Jan 20, 2020

Have you tried setting up the Site URL under /dashboard/settings/setup? Have you tried putting the public hostname there? If that doesn’t, I recommend you reaching out to the folks that owns CachetHQ. We own only until we create the incident on cachet and anything after that is under CachetHQ’s ownership.

Would mind giving an update after you try this out?

Read more comments on GitHub >

github_iconTop Results From Across the Web

cachet-url-monitor - Bountysource
Hey, I troubleshooted and error where I got a "Traceback" error from python. I put the wrong IP into the config.yml because I...
Read more >
Configuring Subscribers - Cachet Documentation
Once you've Configuring Mail, you need to login to your Dashboard and enable the Allow people to signup to email notifications? setting found...
Read more >
Alerta Documentation - Read the Docs
An Alerta heartbeat is a periodic HTTP request sent to the Alerta API to indicate normal operation of the origin of the heartbeat....
Read more >
Laracasts Forum
Hi , I want to use username instead of E-mail address in L5 authentication system I changed login.blade.php like this : @extends('app') @section('content') ......
Read more >
Alibaba Cloud
Alert subscription and push ... After the Added message appears, Show Key is ... then disabled and all two-factor authentication methods become invalid....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found