Skip to content

dotenv app_url wrong: "https://127.0.0.1api/" #392

Description

@ic-msc

Shopware 6 /.env:
APP_URL=https://127.0.0.1

shopware/ATS is using:

  static async createApiRequestContext(options) {
    const extraHTTPHeaders = {
      "Accept": "application/json",
      "Content-Type": "application/json"
    };
    if (options.access_token && options.access_token.length) {
      extraHTTPHeaders["Authorization"] = "Bearer " + options.access_token;
    }
    return await request.newContext({
      baseURL: `${options.app_url}api/`,
      ignoreHTTPSErrors: options.ignoreHTTPSErrors,
      extraHTTPHeaders
    });
  }

So you're creating the baseURL as "https://127.0.0.1api/" – The default is to NOT add a trailing slash in the shopware 6 .env file.

Also you're ignoring the Playwright BaseURL.

Something's very strange here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions