# API-Fehler (500) bei Authentifizierung nach Update EA2

**URL:** https://forum.shopware.com/t/api-fehler-500-bei-authentifizierung-nach-update-ea2/62489
**Category:** Programmierung
**Created:** [18. Oktober 2019 um 15:46 UTC](https://forum.shopware.com/t/api-fehler-500-bei-authentifizierung-nach-update-ea2/62489 "2019-10-18T15:46:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ffetech](https://avatars.discourse-cdn.com/v4/letter/f/c77e96/32.png) [@ffetech](https://forum.shopware.com/u/ffetech)
#### Post date: [18. Oktober 2019 um 15:46 UTC](https://forum.shopware.com/t/api-fehler-500-bei-authentifizierung-nach-update-ea2/62489/1 "2019-10-18T15:46:00Z")

</div>

Hallo Zusammen,

Ich hab&nbsp;grad das Upgrade EA2 installiert und nun bekomme ich bei der API Authentifizierung einen 500er und ein Frontend-HTML mit dem Hinweis “etwas ist schief gegangen”. Unmittelbar vor dem Update hat es noch funktioniert.

Hat jemand dasselbe Problem? Gibt’s da eine Lösung?

Im Folgenden die Infos zu meinem Authentifizierungs-Request:

Lokale URL:&nbsp;[http://triplefmac.local/api/oauth/token](http://triplefmac.local/api/oauth/token)

Method:&nbsp;POST

ContentType: application/json

Body:

{  
&nbsp; “client\_id”: “SWIABWRQEJZNCMS4EMLCAZHPDG”,  
&nbsp; “client\_secret”: “RTJKdlJuaGN4U1lJajlXdVBQaGtQNk1McjVkYXp1eXdJdnEwSkM”,  
&nbsp; “grant\_type”: “client\_credentials”  
}

Müsste eigentlich alles so passen wie beschrieben:

[https://docs.shopware.com/en/shopware-platform-dev-en/api/admin-authentication?category=shopware-platform-dev-en/api](https://docs.shopware.com/en/shopware-platform-dev-en/api/admin-authentication?category=shopware-platform-dev-en/api)

Und es hat zuvor ja noch funktioniert.

Ach ja, und as findet man im Logfile:

[2019-10-18&nbsp;15:05:38]&nbsp;request.CRITICAL:&nbsp;Uncaught&nbsp;PHP&nbsp;Exception&nbsp;Shopware\Core\Framework\Routing\Exception\InvalidRouteScopeException:&nbsp;“Invalid&nbsp;route&nbsp;scope&nbsp;for&nbsp;route&nbsp;api.oauth.token.”&nbsp;at&nbsp;/var/www/html/vendor/shopware/core/Framework/Routing/RouteScopeListener.php&nbsp;line&nbsp;93&nbsp;{“exception”:"[object]&nbsp;(Shopware\Core\Framework\Routing\Exception\InvalidRouteScopeException(code:&nbsp;0):&nbsp;Invalid&nbsp;route&nbsp;scope&nbsp;for&nbsp;route&nbsp;api.oauth.token.&nbsp;at&nbsp;/var/www/html/vendor/shopware/core/Framework/Routing/RouteScopeListener.php:93)"}&nbsp;

[2019-10-18&nbsp;15:11:01]&nbsp;php.WARNING:&nbsp;User&nbsp;Notice:&nbsp;Key&nbsp;file&nbsp;“file:///var/www/html/config/jwt/public.pem”&nbsp;permissions&nbsp;are&nbsp;not&nbsp;correct,&nbsp;recommend&nbsp;changing&nbsp;to&nbsp;600&nbsp;or&nbsp;660&nbsp;instead&nbsp;of&nbsp;646&nbsp;{“exception”:"[object]&nbsp;(ErrorException(code:&nbsp;0):&nbsp;User&nbsp;Notice:&nbsp;Key&nbsp;file&nbsp;“file:///var/www/html/config/jwt/public.pem”&nbsp;permissions&nbsp;are&nbsp;not&nbsp;correct,&nbsp;recommend&nbsp;changing&nbsp;to&nbsp;600&nbsp;or&nbsp;660&nbsp;instead&nbsp;of&nbsp;646&nbsp;at&nbsp;/var/www/html/vendor/league/oauth2-server/src/CryptKey.php:59)"}&nbsp;

[2019-10-18&nbsp;15:11:01]&nbsp;php.WARNING:&nbsp;User&nbsp;Notice:&nbsp;Key&nbsp;file&nbsp;“file:///var/www/html/config/jwt/private.pem”&nbsp;permissions&nbsp;are&nbsp;not&nbsp;correct,&nbsp;recommend&nbsp;changing&nbsp;to&nbsp;600&nbsp;or&nbsp;660&nbsp;instead&nbsp;of&nbsp;646&nbsp;{“exception”:"[object]&nbsp;(ErrorException(code:&nbsp;0):&nbsp;User&nbsp;Notice:&nbsp;Key&nbsp;file&nbsp;“file:///var/www/html/config/jwt/private.pem”&nbsp;permissions&nbsp;are&nbsp;not&nbsp;correct,&nbsp;recommend&nbsp;changing&nbsp;to&nbsp;600&nbsp;or&nbsp;660&nbsp;instead&nbsp;of&nbsp;646&nbsp;at&nbsp;/var/www/html/vendor/league/oauth2-server/src/CryptKey.php:59)"}&nbsp;

[2019-10-18&nbsp;15:11:01]&nbsp;request.INFO:&nbsp;Matched&nbsp;route&nbsp;“api.oauth.token”.&nbsp;{“route”:“api.oauth.token”,“route\_parameters”:{"\_route":“api.oauth.token”,“auth\_required”:false,"\_controller":“Shopware\Core\Framework\Api\Controller\AuthController::token”},“request\_uri”:“[http://triplefmac.local/api/oauth/token",“method”:"POST](http://triplefmac.local/api/oauth/token%22,%22method%22:%22POST)”}&nbsp;

[2019-10-18&nbsp;15:11:02]&nbsp;app.DEBUG:&nbsp;#1&nbsp;Rule&nbsp;detection:&nbsp;Warenkorbwert&nbsp;größer/gleich&nbsp;0&nbsp;(Zahlungsarten)&nbsp;with&nbsp;priority&nbsp;100&nbsp;&nbsp;

---

<div class="post-metadata">

### Author: ![ffetech](https://avatars.discourse-cdn.com/v4/letter/f/c77e96/32.png) [@ffetech](https://forum.shopware.com/u/ffetech)
#### Post date: [21. Oktober 2019 um 18:31 UTC](https://forum.shopware.com/t/api-fehler-500-bei-authentifizierung-nach-update-ea2/62489/2 "2019-10-21T18:31:54Z")

</div>

Oh je, ich hab rausgefunden, wo das Problem war.&nbsp;Ungefähr&nbsp;40&nbsp;cm vor dem Bildschirm 🙂

Ich hatte einen überflüssigen Slash in der URL:&nbsp;[http://triplefmac.local/](http://triplefmac.local/) **/** api/oauth/token

Das wurde anscheinend vor dem Update EA2 noch ignoriert.

&nbsp;
