This is a list of common pitfalls on using API Platform, and how to avoid them.
Docker Toolbox is not supported anymore by API Platform. Please upgrade to Docker for Windows.
app container cannot start and display this
Error starting userland proxy: Bind for 0.0.0.0:80, it means that port 80 is already in use. You can check to see which processes are currently listening on certain ports.
# Find out if any service listens on port 80. # You can use this command on UNIX-based OSes like MacOS and Linux. sudo lsof -n -i :80 | grep LISTEN # For Windows, you can use netstat. # This will give you all TCP/IP network connections and not just processes listening to port 80. netstat -a -b
You can change the port to be used in the
docker-compose.yml file (default is port 80).
For the latest versions of JMSSerializerBundle, there is no conflict so everything should work out of the box.
If you are still using the old, unmaintained v1 of JMSSerializerBundle, the best way should be to upgrade to v2 of JMSSerializerBundle.
In v1 of JMSSerializerBundle, the
serializer alias is registered for the JMS Serializer service by default. However, API Platform requires the Symfony Serializer (and not the JMS one) to work properly. If you cannot upgrade for some reason, this behavior can be deactivated using the following configuration:
# app/config/config.yml jms_serializer: enable_short_alias: false
The JMS Serializer service is available as