Postal server cannot send webhook API calls
Describe the bug
Postal server cannot send webhook API calls.
To Reproduce
- Configure a Webhook endpoint

- Send an email through the UI or using SMTP Protocol

- Check Outgoing Messages Tab from Messages page

- There is an error after sending the email related to the webhook

- The webhook API call is not sent
Expected behaviour
Postal server is sending an API call to the endpoint configured in Postal UI with success.
Screenshots

Environment details
- OS: Ubuntu
- Browser : Chrome
- Version : 110
- Type : Desktop
Additional information/context
I checked the logs of postal-worker container and it seems to be related to the line 41 on app/models/webhook_request.rb when the payload is being serialized by Hash:
server.webhook_requests.create!(:event => event, :payload => payload, :webhook => webhook, :url => webhook.url)
I found this fix : https://stackoverflow.com/questions/72970170/upgrading-to-rails-6-1-6-1-causes-psychdisallowedclass-tried-to-load-unspecif
It seems to be related to the latest version of Postal.
see also #2397
I've just tested and I can't reproduce this in the current version. It may have been fixed by the recent Rails 6.1 upgrade. Can you re-test? If there's still an issue, can you confirm the configuration of the webhook?
Hello, I created the issue when it occurs after the new release of postal 2.1.3 two weeks ago Then it has been rollbacked to version 2.1.2 and it was ok. Didn't try yet with the latest new release 2.1.3 :) I will let you know
Can't reproduce this