# Admin API requests to product-category urls result in 500

**URL:** https://forum.shopware.com/t/admin-api-requests-to-product-category-urls-result-in-500/68112
**Category:** Administration (EN)
**Created:** [3. Juli 2020 um 12:47 UTC](https://forum.shopware.com/t/admin-api-requests-to-product-category-urls-result-in-500/68112 "2020-07-03T12:47:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![3029490320489](https://avatars.discourse-cdn.com/v4/letter/3/76d3ee/32.png) [@3029490320489](https://forum.shopware.com/u/3029490320489)
#### Post date: [3. Juli 2020 um 12:47 UTC](https://forum.shopware.com/t/admin-api-requests-to-product-category-urls-result-in-500/68112/1 "2020-07-03T12:47:30Z")

</div>

Argument 1 passed to Shopware\Core\Framework\DataAbstractionLayer\Cache\EntityCacheKeyGenerator::getEntityContextCacheKey() must be of the type string, array given, called in /app/platform/src/Core/Framework/DataAbstractionLayer/Cache/CachedEntityReader.php on line 90

---

<div class="post-metadata">

### Author: ![3029490320489](https://avatars.discourse-cdn.com/v4/letter/3/76d3ee/32.png) [@3029490320489](https://forum.shopware.com/u/3029490320489)
#### Post date: [3. Juli 2020 um 13:06 UTC](https://forum.shopware.com/t/admin-api-requests-to-product-category-urls-result-in-500/68112/2 "2020-07-03T13:06:38Z")

</div>

This is just one example of error I got when I made a request to / api / v1 / product-category-tree. When trying to create a product-category association with / api / v1 / product-category I got

Argument 2 passed to Shopware \ Core \ Framework \ Api \ Response \ Type \ JsonFactoryBase :: createRedirectResponse () must be of the type string, array given, called in \ / app \ / platform \ / src \ / Core \ / Framework \ / Api \ / Controller \ /ApiController.php on line 745
