# Verständnisfrage Access Key

**URL:** <https://forum.shopware.com/t/verstaendnisfrage-access-key/98284>\
**Category:** Shopware 6 (German)\
**Created:** [30. Januar 2023 um 23:37 UTC](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284 "2023-01-30T23:37:00Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![marius.wang](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marius.wang/32/19708_2.png) [@marius.wang](https://forum.shopware.com/u/marius.wang)\
**Post date:** [1. Februar 2023 um 08:51 UTC](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284/21 "2023-02-01T08:51:00Z")

</div>

Guten Morgen,  
ich habe alles umgesetzt. Die Daten werden korrekt in der Datenbank gespeichert und anschließend werden die Mails versendet (mit Chronjob). Damit bin ich auch zufrieden.

Allerdings habe ich bemerkt, dass (obwohl ich im Admin-Bereich eingeloggt bin), diese Fehlermeldung in den AJAX-Requests ausgegeben wird:

```auto
"code": "9",
"status": "401",
"title": "The resource owner or authorization server denied the request.",
"detail": "Missing \"Authorization\" header",

```

```auto
No route found for "GET http://127.0.0.1:8001/Users/wangma/shopware/StockNotification/src/vendor/league/oauth2-server/src/AuthorizationValidators/BearerTokenValidator.php"

```

Das ist unabhängig von den Plugins, da die Meldung auch ohne installierte Plugins erscheint. Dadurch werden die Events nicht getriggert, wie ich der Fehlermeldung entnehmen kann. Ich denke, dass das bestimmt an einer falschen Konfiguration meinerseits liegt. Ich nutze Dockware/Dev auf einem M1 Mac.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [1. Februar 2023 um 09:44 UTC](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284/22 "2023-02-01T09:44:23Z")

</div>

Wieso wird im Backend ein Request an eine API geschickt? Das ist doch gar nicht mehr notwendig mit deiner neuen Architektur. Das hat nichts mit deine Systemumgebung zu tun, das ist „fehlerhaft“ programmiert.

---

<div class="post-metadata">

**Author:** ![marius.wang](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marius.wang/32/19708_2.png) [@marius.wang](https://forum.shopware.com/u/marius.wang)\
**Post date:** [1. Februar 2023 um 09:50 UTC](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284/23 "2023-02-01T09:50:18Z")

</div>

Den Fehler habe ich aber auch, wenn ich einfach „schnell“

```auto
docker run --rm -p 80:80 dockware/dev:latest

```

ausführe ohne mein Zutun

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [1. Februar 2023 um 10:05 UTC](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284/24 "2023-02-01T10:05:36Z")

</div>

> [@marius.wang](#):
>
> `StockNotification`

Vielleicht irre ich mich auch, aber das kommt weder in GitHub noch in meinem Shopware-Ordner vor.

---

<div class="post-metadata">

**Author:** ![marius.wang](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marius.wang/32/19708_2.png) [@marius.wang](https://forum.shopware.com/u/marius.wang)\
**Post date:** [1. Februar 2023 um 10:09 UTC](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284/25 "2023-02-01T10:09:47Z")

</div>

Da hast du natürlich recht. Aber ich bekomme diese Fehlermeldung z.B., wenn ich docker run --rm -p 80:80 dockware/dev:latest nutze

```auto
{
"errors": [
{
"code": "9",
"status": "401",
"title": "The resource owner or authorization server denied the request.",
"detail": "Missing \"Authorization\" header",
"meta": {
"trace": [
{
"file": "/var/www/html/vendor/league/oauth2-server/src/AuthorizationValidators/BearerTokenValidator.php",
"line": 93,
"function": "accessDenied",
"class": "League\\OAuth2\\Server\\Exception\\OAuthServerException",
"type": "::"
},
{
"file": "/var/www/html/vendor/shopware/core/Framework/Api/OAuth/BearerTokenValidator.php",
"line": 43,
"function": "validateAuthorization",
"class": "League\\OAuth2\\Server\\AuthorizationValidators\\BearerTokenValidator",
"type": "->"
},
{
"file": "/var/www/html/vendor/league/oauth2-server/src/ResourceServer.php",
"line": 84,
"function": "validateAuthorization",
"class": "Shopware\\Core\\Framework\\Api\\OAuth\\BearerTokenValidator",
"type": "->"
},
{
"file": "/var/www/html/vendor/shopware/core/Framework/Api/EventListener/Authentication/ApiAuthenticationListener.php",
"line": 105,
"function": "validateAuthenticatedRequest",
"class": "League\\OAuth2\\Server\\ResourceServer",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php",
"line": 117,
"function": "validateRequest",
"class": "Shopware\\Core\\Framework\\Api\\EventListener\\Authentication\\ApiAuthenticationListener",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php",
"line": 230,
"function": "__invoke",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php",
"line": 59,
"function": "callListeners",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->"
},
{
"file": "/var/www/html/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php",
"line": 54,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->"
},
{
"file": "/var/www/html/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php",
"line": 99,
"function": "dispatch",
"class": "Shopware\\Core\\Content\\Flow\\Dispatching\\FlowDispatcher",
"type": "->"
},
{
"file": "/var/www/html/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php",
"line": 53,
"function": "dispatch",
"class": "Shopware\\Core\\Framework\\Webhook\\WebhookDispatcher",
"type": "->"
},
{
"file": "/var/www/html/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php",
"line": 38,
"function": "dispatch",
"class": "Shopware\\Core\\Framework\\Event\\BusinessEventDispatcher",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php",
"line": 154,
"function": "dispatch",
"class": "Shopware\\Core\\Framework\\Event\\NestedEventDispatcher",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/http-kernel/HttpKernel.php",
"line": 151,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/http-kernel/HttpKernel.php",
"line": 75,
"function": "handleRaw",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/http-kernel/Kernel.php",
"line": 202,
"function": "handle",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php",
"line": 86,
"function": "handle",
"class": "Symfony\\Component\\HttpKernel\\Kernel",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php",
"line": 479,
"function": "handle",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\SubRequestHandler",
"type": "::"
},
{
"file": "/var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php",
"line": 452,
"function": "forward",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php",
"line": 346,
"function": "fetch",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache",
"type": "->"
},
{
"file": "/var/www/html/vendor/symfony/http-kernel/HttpCache/HttpCache.php",
"line": 224,
"function": "lookup",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache",
"type": "->"
},
{
"file": "/var/www/html/vendor/shopware/core/HttpKernel.php",
"line": 154,
"function": "handle",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache",
"type": "->"
},
{
"file": "/var/www/html/vendor/shopware/core/HttpKernel.php",
"line": 79,
"function": "doHandle",
"class": "Shopware\\Core\\HttpKernel",
"type": "->"
},
{
"file": "/var/www/html/public/index.php",
"line": 85,
"function": "handle",
"class": "Shopware\\Core\\HttpKernel",
"type": "->"
}
],
"file": "/var/www/html/vendor/league/oauth2-server/src/Exception/OAuthServerException.php",
"line": 243
}
}
]
}

```

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [1. Februar 2023 um 10:32 UTC](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284/26 "2023-02-01T10:32:34Z")

</div>

Da bin ich leider raus. Da musst du dich an jemanden wenden, der (täglich) Dockware nutzt.

---

<div class="post-metadata">

**Author:** ![marius.wang](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marius.wang/32/19708_2.png) [@marius.wang](https://forum.shopware.com/u/marius.wang)\
**Post date:** [1. Februar 2023 um 10:34 UTC](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284/27 "2023-02-01T10:34:42Z")

</div>

Ich danke dir trotzdem für deine Hilfe bisher. 🙂

[Vorherige Seite](https://forum.shopware.com/t/verstaendnisfrage-access-key/98284.md?page=1)
