-
Notifications
You must be signed in to change notification settings - Fork 9
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
Behaves differently #22
Comments
Do you use the x64 docker image, or the arm variant? I'll take a look tomorrow and upgrade the mjml_version to the next available minor version. |
Sorry I didn't say; I used |
Sorry for the delay, just found a spot to look at this in detail. Is there any reason why you send in JSON? The server accepts just the plain MJML as POST body, i.e.
based on your example (and added Here is the same call as cURL curl -X POST --location "http://localhost:8080" \
-H "Content-Type: text/html" \
-d "<mjml><mj-body><mj-text font-size=\"16px\">Test</mj-text></mj-body></mjml>" |
I see. I use one of the two Java libraries listed on https://mjml.io/community but I understand now that this project isn't meant to be a drop-in replacement for the official MJML API? :) If it aims to be, I guess it needs to support JSON. |
Input:
Response:
In the logs:
Sending the exact same request to
https://api.mjml.io/v1/render
:Other than that, I had various strange validation errors I'm not able to reproduce right now, which also works with the official API.
The text was updated successfully, but these errors were encountered: