# Shopware 6 Ersteinrichtung axios error 400 und 401

**URL:** <https://forum.shopware.com/t/shopware-6-ersteinrichtung-axios-error-400-und-401/98964>\
**Category:** Installation / Einstieg\
**Tags:** installation--gettin, administration\
**Created:** [16. März 2023 um 09:34 UTC](https://forum.shopware.com/t/shopware-6-ersteinrichtung-axios-error-400-und-401/98964 "2023-03-16T09:34:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pout](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@pout](https://forum.shopware.com/u/pout)\
**Post date:** [16. März 2023 um 09:34 UTC](https://forum.shopware.com/t/shopware-6-ersteinrichtung-axios-error-400-und-401/98964/1 "2023-03-16T09:34:13Z")

</div>

Hallo,

Ich habe gerade shopware6 auf einem nginx Server installiert. Die nginx Konfiguration ist die Standard Symfony config. Die Installation ist klaglos durchgelaufen, aber beim Ersteinrichten hängt es beim setzen der „Default Values“. Das Sprachpaket „Deutsch“ konnte ich installieren.

In der Browserkonsole erhalte ich axios errors:

```auto
Uncaught (in promise)
Object { message: "Request failed with status code 401", name: "AxiosError", code: "ERR_BAD_REQUEST", config: {…}, request: XMLHttpRequest, response: {…}, stack: "" }
code: "ERR_BAD_REQUEST"
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​response: Object { data: {…}, status: 401, statusText: "Unauthorized", … }

```

und

```auto
Uncaught (in promise) 
Object { message: "Request failed with status code 400", name: "AxiosError", code: "ERR_BAD_REQUEST", config: {…}, request: XMLHttpRequest, response: {…}, stack: "" }
​code: "ERR_BAD_REQUEST"
​config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​response: Object { data: {…}, status: 400, statusText: "Bad Request", … }

```

Müssen spezielle Header gesetzt werden?

​

---

<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:** [16. März 2023 um 09:55 UTC](https://forum.shopware.com/t/shopware-6-ersteinrichtung-axios-error-400-und-401/98964/2 "2023-03-16T09:55:53Z")

</div>

> **[Requirements](https://developer.shopware.com/docs/guides/installation/requirements#webserver)**

---

<div class="post-metadata">

**Author:** ![pout](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@pout](https://forum.shopware.com/u/pout)\
**Post date:** [20. März 2023 um 09:15 UTC](https://forum.shopware.com/t/shopware-6-ersteinrichtung-axios-error-400-und-401/98964/3 "2023-03-20T09:15:55Z")

</div>

Welche Anforderung ist es, auf die wir achten müssen. Nginx ist lt. symfony docs eingerichtet.  
Beim Setzen der Setup „Default Values“ hängt die Einrichtung mit dem Error 400:

```auto
response: '{"errors":[{"status":"400","code":"FRAMEWORK__MISSING_REQUEST_PARAMETER","title":"Bad Request","detail":"Parameter \\u0022domain\\u0022 is missing.","meta":{"parameters":{"parameterName":"domain"}}}]}'
responseURL: "https://shop.mydomain.com/api/_action/system-config?domain=core.defaultSalesChannel"

```

In der system\_config DB-Tabelle gibt es keinen Eintrag für core.defaultSalesChannel.
