Open wout opened 6 months ago
Adding some more details here :smile:
I had the same issue, this was in my case due to ruby v3.3.3.
I rolled my Ruby version down to 2.6.6 (which was being used in a working project) for testing purposes and the mailjet gem did not attempt this "stunt" and the email was sent successfully.
Using the example code from the docs to send an email, this gem raises the following error:
That's because the
persisted
property (boolean) is also stored in the attributes object: https://github.com/mailjet/mailjet-gem/blob/master/lib/mailjet/resource.rb#L344I could get around it by monkey-patching the code:
But I'm not sure if that covers all cases.