https://prefect.io logo
#prefect-server
Title
# prefect-server
t

Tom Baldwin

05/12/2022, 9:25 PM
I have a self-hosted prefect server running 0.15.13 that I am trying to set up a Slack integration for via webhook. I am clicking on the "secret link" in the docs to get the webhook URL. But when I paste this into the Prefect UI and click Save, I get the error:
Copy code
Variable "$input" got invalid value null at "input.tenant_id"; Expected non-nullable type UUID! not to be null.
I searched the community and saw some recent discussion about
tenant_id
in this forum related to the 1.0 release, but none in this exact context I think. Do I need to install a newer version of Prefect, or click an older version of the secret link, to make this work?
k

Kevin Kho

05/13/2022, 1:28 PM
Not sure why that is the specific error message but Server doesn’t have secrets. It’s the Cloud only feature.
t

Tom Baldwin

05/13/2022, 4:55 PM
Thanks for the response! I'm aware that Secrets are a cloud-only feature, but what I'm trying to do (Slack integration) does not involve Secrets (as far as I know). I only called it a "secret" URL because that is what the docs call it:
k

Kevin Kho

05/13/2022, 5:06 PM
Ah ok I see what you are saying. So this looks like server migrations didn’t run or it might be this GraphQL Validation failure. What is your Hasura version?
t

Tom Baldwin

05/13/2022, 8:19 PM
Thanks. I am running
v2.1.1
of Hasura. Does that mean I should try setting the
HASURA_GRAPHQL_V1_BOOLEAN_NULL_COLLAPSE
environment variable?
k

Kevin Kho

05/13/2022, 8:26 PM
Yes
t

Tom Baldwin

05/13/2022, 8:27 PM
Actually, it appears this variable is already set inside of
prefect/cli/docker-compose.yml
.
I also verified the env var is set correctly inside of the running container.
k

Kevin Kho

05/13/2022, 8:34 PM
Oh that’s weird. Do you have a tenant when you spin up the UI? I think this might be an issue with webhooks
t

Tom Baldwin

05/13/2022, 8:43 PM
I'm not sure how to check whether I have a tenant. Would that be visible in the UI itself, or in a log somewhere?
k

Kevin Kho

05/13/2022, 9:39 PM
Visible in the tenant
t

Tom Baldwin

05/13/2022, 9:56 PM
I have a team called "default", is that the same thing as a tenant?
k

Kevin Kho

05/13/2022, 9:59 PM
Yes that should be. Can you try using the Interactive API to see if you can query the tenant route? Should be something like:
Copy code
query {
            tenant {
                id
                name
        }
    }
Assuming you have an id, I think this is an issue with the webhook
t

Tom Baldwin

05/16/2022, 5:35 PM
Thanks, here is the response:
Copy code
{
  "data": {
    "tenant": [
      {
        "id": "ba245c42-e7bf-46ff-a879-fee1ef3f0a8d",
        "name": "default"
      }
    ]
  }
}
@Kevin Kho if this does indicate an issue with the webhook, should I open an issue in a GitHub repo? I'm not sure where that code lives.
k

Kevin Kho

05/20/2022, 7:15 PM
Ah crap sorry my bad. Let me dig into this now
So I can run this fine in 1.2, I’m gonna try downgrading to your version
I really can’t replicate this on 0.15.13 either
What is your hasura version?
Did you start server with helm or docker-compose?
t

Tom Baldwin

05/23/2022, 9:46 PM
Hasura version is
v2.1.1
and this is running via docker-compose.
It's on a VM that we SSH into with the ports forwarded, maybe that is causing issues... in any case I'll give it another go to make sure it wasn't just gremlins.
k

Kevin Kho

05/23/2022, 9:48 PM
2.1 seems too high for 0.15.13 but i’m not sure
2 Views