Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions extra/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,31 @@ The JMS Serializer service is available as `jms_serializer`.
**Note:** if you are using JMSSerializerBundle along with FOSRestBundle and considering migrating to
API Platform, you might want to take a look at [this guide](migrate-from-fosrestbundle.md) too.

## "The service has a dependency on a non-existent service property_info" Error

If you get the following error after upgrading API Platform or Symfony:

```text
The service "api_platform.metadata.property.name_collection_factory.property_info"
has a dependency on a non-existent service "property_info".
```

This means the `property_info` component is not enabled. Recent versions of Symfony require it to be
explicitly activated in your configuration:

```yaml
# config/packages/property_info.yaml
framework:
property_info:
enabled: true
```

Clear your cache after making the change:

```console
php bin/console cache:clear
```

## "upstream sent too big header while reading response header from upstream" NGINX 502 Error

Some of your API calls fail with a 502 error and the logs for the API container shows the following
Expand Down