Hi, getting a “Serialization of ‘Closure’ is not allowed” error message using Webhook with automation.
Expected behavior:
After installing both the automation and webhook plugins, there’s an option for a webhook event called “Send payload to Webhooks”. Using this option with any URL+secret causes the error message to be logged to ‘recent failures’ of the automation event.
Actual behavior:
First line of the traceback is /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Queue.php(158): serialize(Object(Spatie\WebhookServer\CallWebhookJob)) which is odd because at first glance, Spatie\WebhookServer\CallWebhookJob does appear to be Queuable.
Reproduce steps:
Install both plugins and set up an automation event to trigger on Order Creation.
Put any url into the URL field of the ‘Send Payload to webhooks’ form.
Create an order.
Check ‘Recent Failures’ tab on your automation event.
Version:
TI version 3.1.2
PHP 8.0.12
(issue copied from CupNoodles on GitHub)