liminspace / django-mjml

The simplest way to use MJML in Django templates.
MIT License
263 stars 32 forks source link

Getting timeouts since 0.8.0 #90

Closed Flexonze closed 5 years ago

Flexonze commented 5 years ago

Hi, i've upgraded django-mjml to version to 0.8.0 while trying to fix the issue I had. But now i'm getting timeouts. I don't really know why. Im using the docker-compose image.

MJML compile error (via MJML TCP server): no working server
Number of servers: 1
Timeouts: 1
liminspace commented 5 years ago

@Flexonze Do you use updated tcpserver.js? If you use tcpserver in docker be sure you use latest or 0.8 tag.

Flexonze commented 5 years ago

I am using latest

  mjml:
    image: liminspace/mjml-tcpserver:latest
    environment:
      MJML_ARGS: "--mjml.minify=true --mjml.validationLevel=strict"

It was working fine in the 0.7.0 version.

liminspace commented 5 years ago

Try to run docker-compose pull && docker-compose up -d in the directory where docker-compose.yml is present

liminspace commented 5 years ago

And I don't recommend you to use latest tag. Use tag specified in installed python package, but only with two numbers like 0.8

Flexonze commented 5 years ago

Yup, that fixed it! Sorry, i'm not a big docker/docker-compose guy :joy:. I will also change latest for 0.8 as you recommended. By the way, I can confirm 0.8.0 really did fix this issue

Thanks for helping out and keep up the awesome work! This tool is great