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.

Message in stderr is breaking django-mjml

See original GitHub issue

The fix to issue #1342 released in version 4.2.1 is breaking django-mjml template engine. If using mjml v3 the message MJML v3 syntax detected, migrating to MJML v4 syntax. Use mjml -m to get the migrated MJML. is shown in stderr now, making django-mjml fail to render the template because it considers that any output in stderr an error running the command. With mjml v4.2.0 it works just fine.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
a14dcommented, Aug 25, 2021

I had this problem recently, the solution was to remove mj-container as mentioned here #1342 by @iRyusa

1reaction
tkafkacommented, Mar 6, 2019

Hi @ngarnier, I disagree with this - stdout should only be used for the actual output (so that you can redirect it to a file, and be sure you aren’t sending your users an email with validation messages).

All diagnostic output should go to stderr, and I propose to add setting to select verbosity (warnings and errors, or errors only).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Message in stderr is breaking django-mjml -
Message in stderr is breaking django -mjml. ... a change that moves all messages from stdout to stderr to prevent these being mixed...
Read more >
How to make a new line in django messages.error
I have a line of my code messages.error(request, ('ERROR: upload failed ...
Read more >
How to manage error reporting | Django documentation
When DEBUG is False , Django will email the users listed in the ADMINS setting whenever your code raises an unhandled exception and...
Read more >
django-mjml - PyPI
Install django-mjml. $ pip install django-mjml. If you want to use API HTTP-server you also need requests (at least version 2.24):
Read more >
facebook Code Example - Code Grepper
It doesn't seem to be a Python package or a valid path to a data directory. ... CocoaPods could not find compatible versions...
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