MJML compile error (via MJML TCP server): no working server
See original GitHub issuePython: 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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes you are right. This is my fault. Thank you and your awesome project!
@legenddaniel remove
backend
fromservices.mjml.depends_on
and putmjml
intoservices.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'
. Removeservices.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).