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

Slackbot endpoint is not responding to event_callback messages #301

Closed
mlhaufe opened this issue Jul 30, 2024 · 0 comments · Fixed by #302
Closed

Slackbot endpoint is not responding to event_callback messages #301

mlhaufe opened this issue Jul 30, 2024 · 0 comments · Fixed by #302
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mlhaufe
Copy link
Contributor

mlhaufe commented Jul 30, 2024

A 400 response is being given:

HTTP/1.1 POST http://cathedral.final-hill.com/api/slack-bot application/json 3264 - 400 106 application/json

Which means the zod schema needs to be updated. Generate a zod schema that accepts the following possibilites:

{
    "token": "Jhj5dZrVaK7ZwHHjRyZWjbDl",
    "challenge": "3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P",
    "type": "url_verification"
}
{
    "type": "app_mention",
    "user": "U061F7AUR",
    "text": "<@U0LAN0Z89> is it everything a river should be?",
    "ts": "1515449522.000016",
    "channel": "C123ABC456",
    "event_ts": "1515449522000016"
}
{
    "token": "ZZZZZZWSxiZZZ2yIvs3peJ",
    "team_id": "T061EG9R6",
    "api_app_id": "A0MDYCDME",
    "event": {
        "type": "app_mention",
        "user": "W021FGA1Z",
        "text": "You can count on <@U0LAN0Z89> for an honorable mention.",
        "ts": "1515449483.000108",
        "channel": "C123ABC456",
        "event_ts": "1515449483000108"
    },
    "type": "event_callback",
    "event_id": "Ev0MDYHUEL",
    "event_time": 1515449483000108,
    "authed_users": [
        "U0LAN0Z89"
    ]
}
{
    "token": "ZZZZZZWSxiZZZ2yIvs3peJ",
    "team_id": "T123ABC456",
    "api_app_id": "A123ABC456",
    "event": {
        "type": "app_mention",
        "user": "U123ABC456",
        "text": "What is the hour of the pearl, <@U0LAN0Z89>?",
        "ts": "1515449522.000016",
        "channel": "C123ABC456",
        "event_ts": "1515449522000016"
    },
    "type": "event_callback",
    "event_id": "Ev123ABC456",
    "event_time": 1515449522000016,
    "authed_users": [
        "U0LAN0Z89"
    ]
}
@mlhaufe mlhaufe added the bug Something isn't working label Jul 30, 2024
@mlhaufe mlhaufe added this to the v0.11.0 milestone Jul 30, 2024
@mlhaufe mlhaufe self-assigned this Jul 30, 2024
@mlhaufe mlhaufe linked a pull request Jul 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant