khuyentran1401 / prefect-alert

A decorator that sends alert when a Prefect flow fails
https://khuyentran1401.github.io/prefect-alert/
Apache License 2.0
12 stars 3 forks source link

Alert URL incorrect for local server #11

Open mahiki opened 1 year ago

mahiki commented 1 year ago

I'm testing the alert decorator on a local prefect server, and the notification arrives on slack correctly.

However the URL leads to a 404 because of the /app/ component:

# FAILS 404 on local server
 http://127.0.0.1:4204/app/flow-runs/flow-run/10e2ec85-f286-4bd1-b143-e791ca6901a7

But stripping the 'app' from the URL makes the local URL work correctly:

 http://127.0.0.1:4204/flow-runs/flow-run/10e2ec85-f286-4bd1-b143-e791ca6901a7