I guess my question is why is it using the API url instead of the UI url? Since the link should be to the web UI not to the API.
k
Kevin Kho
05/11/2022, 4:46 AM
4200 is where the API lives, not necessarily Slack messages. You connect to the UI externally, but the UI makes requests to the configured. So this shouldn’t be pointing to the UI, it should be pointing to the API. This should be configured where the flow is running.
j
Jeff Kehler
05/11/2022, 5:42 AM
Maybe I need to give a bit more context with a screenshot. I've configured a Slack Cloud Hook on a Flow to trigger on a Failed state. And this is what the Slack notification looks like.
So the issue I'm encountering is that the
Link
doesn't actually link to the Web UI. Since the Web UI is hosted on port 8080. Port 4200 is for the API. Also the link should not be
localhost
but rather the server IP.
Jeff Kehler
05/11/2022, 5:43 AM
But the link there is clearly intended to be a UI link not an API link.
a
Anna Geller
05/11/2022, 2:09 PM
are you just getting started with Prefect? you may start with Prefect 2.0prefect2 directly rather than with Prefect Server
j
Jeff Kehler
05/12/2022, 3:23 AM
I think I would prefer to stay with 1.0 branch for now at least until 2.0 is out of beta phase.
So I guess my question still stands. Is this the intended behavior of the Slack cloud hook to pass an API url rather than a UI url? Or is this a bug?
a
Anna Geller
05/12/2022, 9:31 AM
I see what you mean: it should be port 8080 in the URL rather than 4200? if so, yes likely a bug. If you'd like to contribute a fix, it's in Server repo under Cloud Hooks. Well-spotted and you're right it should be 8080 to point to the UI
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.