Skip to content
Advertisement

Symfony: Format ‘html’ not supported, handler must be implemented

we have a super strange error only on one (mac) machine of our team. It works on others well.

System Setup:

  • OS: Mac OS X Mojave 10.14.6
  • Browser: Iron
  • php 7.4.3

The error when accessing http://127.0.0.1:8000 via the browser or curl http:127.0.0.1:8000 -o output.html is the following (same for both):

JavaScript

Does this (1/3) SuspiciousOperationException, Untrusted Host "127.0.0.1" ring a bell with anybody? There is no specific other software on the system installed, which could cause this interference (at least we think so)

Thx a lot!
Andreas

Advertisement

Answer

So for anybody, who might run into this error in the future:

TRUSTED_HOSTS and TRUSTED_PROXIES in the .env file was not correctly configured.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement