-
Notifications
You must be signed in to change notification settings - Fork 184
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
Webhooks, forbidden? #639
Comments
I think this is rather Discord issue than szurubooru's. This means Discord is blocking your server's connection to their API. I have the same issue with my instance and I tried to contact Discord support about it over a week ago. Got no response from them so far (which is kinda expected tbh, Discord support is full of shit). |
How can it tell my server apart from me? im sitting right next to it, 😕 |
...or, perhaps Discord doesn't like what szurubooru sends to their webhooks and blocking connection. It could be anything at this point. |
What are you exactly trying to do? szurubooru -> service thingie -> discord webhook I mean would be possible. Wrote last year a thingie to use szurubooru in a booru android app. Works like a charm, just needed to know what szurubooru sends and what the client expect to understand the response. Would be same here I suppose. |
There is a webhook setting in Simple as that. |
Started to create thingie which accepts the booru webhooks and transforms them into ones which discord could understand. {
"operation": "created",
"type": "post",
"id": 1,
"user": {
"name": "Test",
"avatarUrl": "data/avatars/test.png"
},
"data": {
"source": null,
"safety": "unsafe",
"checksum": "",
"flags": [],
"featured": false,
"tags": [],
"relations": [],
"notes": []
},
"time": "2024-03-13T23:35:57.964435Z"
} and discord wants something like {
"content": "Hello, World!",
"embeds": [
{
"title": "Hello, Embed!",
"description": "This is an embedded message."
}
],
"attachments": [
{
"id": 0,
"description": "Image of a cute little cat",
"filename": "myfilename.png"
}
]
} I would answer to the thing szurubooru sends also 403 cause its an unexpected input. |
This might be silly but, im trying to get szurubooru to call a discord webhook using the webhook section in config, i get this in the logs though:
The text was updated successfully, but these errors were encountered: