question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MJML compile error (via MJML TCP server): no working server

See original GitHub issue

Python: 3.9 django-mjml: 0.11.0 mjml: 4.10.1

I saw a similar one #119 but that is not solving my issue.

docker-compose.yml:

service:
  ...
  mjml:
    image: liminspace/mjml-tcpserver:0.11.0

settings.py:

MJML_BACKEND_MODE = 'tcpserver'
MJML_TCPSERVERS = [
    ('mjml', 28101),
]

I also tried different settings mentioned in the README none of them works. I can see the image is running on 28101 in docker.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
legenddanielcommented, Dec 9, 2021

Yes you are right. This is my fault. Thank you and your awesome project!

0reactions
liminspacecommented, Dec 9, 2021

@legenddaniel remove backend from services.mjml.depends_on and put mjml into services.backend.depends_on. backend makes requests into mjml, so it depends on mjml, not vice versa. Also try to use newer version of docker-compose, for example '3' or '3.9' instead of '1.0'. Remove services.mjml.ports, it doesn’t make sense. After these changes it must works. If not, check output of mjml. Be sure it open port and listening. Also sometimes restarting docker daemon on your OS can help (there can be stuck processes that uses ports you try to open).

Read more comments on GitHub >

github_iconTop Results From Across the Web

liminspace/mjml-tcpserver - Docker Image
MJML TCP -Server for django-mjml.
Read more >
django-mjml - PyPI
This mode is faster than cmd but it needs run a separated server process which will render templates. MJML_BACKEND_MODE = 'tcpserver' MJML_TCPSERVERS =...
Read more >
Developers - MJML compiler in TCP mode failing in CI on bitbucket -
I'm a bit baffled by the error. It appears that there are working servers but the compilation step is failing immediately. Bitbucket YAML...
Read more >
FAQ - MJML
Leveraging its semantic syntax and a rich standard components library, making your email responsive is not an issue anymore. HTML for email is...
Read more >
Which SMTP Port Should I Use with Mailjet?
SMTP is also used by some applications and services to relay their users to other email servers. Using a process called "store and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found