-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Discussion not posting #37
Comments
A temp solution to this is to disable the plugin... |
I think the webhooks have error handling - what is the error you see in the forum log ( |
#0 /var/www/html/flarum/vendor/illuminate/queue/Queue.php(158): serialize() |
Is this only on discord or would slack be affected too. I'm still on beta 15 but I wouldn't want to upgrade without webhooks ;) |
There should be an error message right before the |
Sorry, i may have not seen this: |
Don't know. |
Looks similar to my issue for Beta 16, but I believe it was fixed in 1.0 update. |
It was not fixed in the 1.0 update of this extension. This remains a bug. |
Do we know what conditions trigger this, so we can try to avoid the bug until a fix can be figured out? |
I have the same error with a Slack Webhook when trying to create a new discussion but with Redis configured, here is async request exported as curl: curl 'https://localhost/api/discussions' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0' \
-H 'Accept: */*' \
-H 'Accept-Language: fr,en-US;q=0.7,en;q=0.3' \
--compressed \
-H 'Referer: https://localhost/t/garbage' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'X-CSRF-Token: REDACTED' \
-H 'Origin: https://localhost \
-H 'DNT: 1' -H 'Connection: keep-alive' \
-H 'Cookie: flarum_remember=REDACTED; flarum_session=REDACTED' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
--data-raw '{"data":{"type":"discussions","attributes":{"title":"Another webhook test","content":"Test"},"relationships":{"tags":{"data":[{"type":"tags","id":"1"},{"type":"tags","id":"68"}]}}}}'
Here is my setup info:
|
Fixed in |
Bug Report
Current Behavior
When creating a discussion it will say: An Error occured, please refresh the page, and it doesn't post the webhook
(Discord webhook)
Steps to Reproduce
Expected Behavior
Discussion should be posted and no error should occur, plus a webhook should be posted
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
https://seer.has-no-bra.in/eVff0E
https://seer.has-no-bra.in/b39FRA
Possible solution(s)
A try catch, or see if the webhook got posted
The text was updated successfully, but these errors were encountered: