Services Plugins FAQs

Workflow error - Plugin action Postmark

I’m using the field “Attach files” and sometimes it doesn’t work.

Here is the error message:

Workflow error - Plugin action Postmark - Send email error: ApiInputError: Invalid request field(s): $.Attachments[1].ContentType at Function.ApiInputError.buildSpecificError (/var/task/node_modules/postmark/dist/client/errors/Errors.js:124:24) at ErrorHandler.buildErrorByHttpStatusCode (/var/task/node_modules/postmark/dist/client/errors/ErrorHandler.js:43:45) at ErrorHandler.buildError (/var/task/node_modules/postmark/dist/client/errors/ErrorHandler.js:26:25) at AxiosHttpClient.transformError (/var/task/node_modules/postmark/dist/client/HttpClient.js:93:38) at /var/task/node_modules/postmark/dist/client/HttpClient.js:77:41 at processTicksAndRejections (internal/process/task_queues.js:95:5) at async eval (eval at build_function (/var/task/util/util_harness.js:37:12), :148:23) Error: Outer Error (see above for inner error) at Block.wait (/var/task/u.js:399:33) at async_fn (/var/task/plugin_api_v3.js:225:27) at Object.async (/var/task/plugin_api_v3.js:22:14) at eval (eval at build_function (/var/task/util/util_harness.js:37:12), :82:18) at eval (eval at build_function (/var/task/util/util_harness.js:37:12), :161:8) at /var/task/plugin_api_v3.js:275:27 at run_fn (/var/task/u.js:550:18)

There were two files and its extensions: jpeg and jfif. I noticed that it always break with this “jfif” extension.

Hello @fabricio.cardoso, :wave:

Thank you for reaching out.

The error you’re encountering is due to the fact that Postmark does not natively support JFIF files for sending emails. Postmark’s email service primarily supports common file types such as JPEG, PNG, GIF, PDF, and other formats typically used for email attachments.

To resolve this issue, I recommend converting JFIF images to a more commonly supported format like JPEG before attaching them to emails. This conversion could be done automatically within your Bubble application using an image processing plugin if frequent manual conversion is not feasible. Converting the files prior to sending will ensure compatibility and prevent the errors you’re currently facing.

I hope this helps! If you have any other questions, please let me know.

Best regards,
Daniel.

Hi @fabricio.cardoso, :wave:

Just following up to see if the information I provided helped resolve the issue with JFIF files and Postmark. Were you able to convert the images to a supported format like JPEG? If you have any further questions or need additional assistance, please let me know.

Best regards,
Daniel

Hi Daniel,

Sorry for the delay in responding. Actually I just found it easier to warn the user to choose another file instead of converting the not supported images.

But thank you on the heads up about JFIF not being supported by the plugin.

Best,
Fabricio

1 Like

Hi Fabricio, :wave:

Please feel free to reach out again whenever you need help or assistance. It will be a pleasure to cooperate. :slightly_smiling_face:

If you’re enjoying our plugins, we’d love for you to rate them. Simply go to the Plugins tab in the Bubble editor, search for the plugin by name, and award it the stars you think it deserves. Your support would mean a great deal to us!

I wish you an amazing day ahead. If there’s anything more you need or questions you have, please don’t hesitate to contact me.:pray:

Best wishes,
Daniel