https://www.spryker.com logo
Join Slack
Powered by
# help
  • b

    broad-mouse-68653

    11/09/2022, 6:30 PM
    Hello, I have a component that contains both an ajax-provider and an ajax-loader. During the initialization of the component, I fetch the data via the ajax-provider (and once loaded update the DOM). My problem now is that the ajax-loader is not yet mounted, and thus does not show the loading spinner when the
    ajaxProvider.fetch
    is called. I'm looking for a way to perform the fetch only once the ajax-loader component was mounted. I thought of some possible solutions, but I lack some understanding to realize them: •
    ajaxLoader.addEventListener('mounted', () => performMyAjaxCall());
    I figured there has to be an event that is triggered once a component is mounted, however I didn't find such an event. • Is there a way to specify the order in which components are mounted? Can I specify that the ajax-loader should be mounted before my custom component? Also, here I'm not quite sure if there are 2 ajax-loaders on the page is it one component mount or two? A solution that works, is to retrieve the ajax-loader and then call
    ajaxLoader.mountCallback
    , but this seems like it's a suboptimal. I'm grateful for any help, best regards, Tom
    q
    • 2
    • 3
  • e

    elegant-cartoon-61249

    11/09/2022, 7:17 PM
    #help Hello @mysterious-ambulance-11183 i am also getting the same problem installing the demo env on ubuntu. I already installed docker twice and did all the prerequistes mentioned here: https://docs.spryker.com/docs/scos/dev/setup/installing-spryker-with-docker/docker-installation-prerequisites/installing-docker-prerequisites-on-linux.html When running it without sudo. When running it with sudo, the boot succeeds, but the docker/sdk up fails with: chmod: changing permissions of '/data/config/Zed/dev_only_private.key': Operation not permitted chmod: changing permissions of '/data/config/Zed/dev_only_public.key': Operation not permitted Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run composer update or composer update <package name>. Package operations: 959 installs, 0 updates, 0 removals In Filesystem.php line 268: /data/vendor/composer does not exist and could not be created. install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...] Can you help me to fix this Issue
    👍 1
  • c

    calm-book-45174

    11/10/2022, 5:39 AM
    Hi
  • c

    calm-book-45174

    11/10/2022, 5:39 AM
    Sriram from INDIA
  • c

    calm-book-45174

    11/10/2022, 5:40 AM
    I have installed Spryker B2B Demo shop using https://docs.spryker.com/docs/scos/dev/setup/quick-installation-guides/quick-installation-guide-macos-and-linux.html#bootstrap-the-[…]er-environment
  • c

    calm-book-45174

    11/10/2022, 5:41 AM
    After step 5 docker/sdk up how do I open the demo shop in the browser?
    a
    • 2
    • 2
  • c

    calm-book-45174

    11/10/2022, 5:41 AM
    Step 6 given below does not open the demo shop in the browser
    c
    • 2
    • 2
  • c

    calm-book-45174

    11/10/2022, 5:41 AM
    • Storefront:
    <http://yves.de|yves.de>.spryker.local
    • Back Office:
    <http://backoffice.de|backoffice.de>.spryker.local
    • Frontend API:
    <http://glue-storefront.de|glue-storefront.de>.spryker.local
    and its schema
    swagger.spryker.local
  • c

    calm-book-45174

    11/10/2022, 5:42 AM
    Can some one help me get the app up and running?
  • c

    calm-toddler-60539

    11/10/2022, 10:15 AM
    Hello guys, When implementing a queue importer, I am getting this exception:
    Exception - Exception: Writer is not defined.
    Any clue?
    w
    • 2
    • 4
  • f

    fast-activity-30172

    11/10/2022, 11:08 AM
    @wooden-king-30682 phpstan command takes so long to generate a report for this specific file. Please guide me on what to do with it.
    e
    • 2
    • 3
  • e

    elegant-cartoon-61249

    11/10/2022, 12:37 PM
    #help Hello guys, when i run command docker/sdk up it gives me ERROR resolve image config for docker.io/docker/dockerfile:experimental root@Ashu:~/Spryker/b2c-demo-shop# docker/sdk up Warning: Neither SSH agent or COMPOSER_AUTH is configured. Private repositories would not be accessible. [+] Building 5.2s (3/3) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => ERROR resolve image config for docker.io/docker/dockerfile:experimental 5.1s ------ > resolve image config for docker.io/docker/dockerfile:experimental: ------ failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: failed to do request: Head "https://registry-1.docker.io/v2/docker/dockerfile/manifests/experimental": dialing registry-1.docker.io:443 no HTTPS proxy: connecting to 44.205.64.79443 dial tcp 44.205.64.79443 i/o timeout Any Idea how to fix it?
    a
    • 2
    • 1
  • g

    green-dinner-62699

    11/11/2022, 10:35 AM
    Hello, I’m getting errors when I try to run the test suite in b2c-demo-shop. running
    vendor/bin/codecept run
    on the host machine gives an error
    Copy code
    Webdriver server never became reachable.
    running
    vendor/bin/codecept run
    inside the cli container gives this error
    Copy code
    Webdriver executable not found: vendor/bin/chromedriver
    running
    docker/sdk console code:test
    gives
    Copy code
    In WebDriverHelper.php line 166:
    
      SprykerTest\Shared\Testify\Helper\WebDriverHelper
    
      Webdriver executable not found: vendor/bin/chromedriver
    is there another command or something else I need to do to allow the test suite to run?
    w
    • 2
    • 3
  • c

    calm-book-45174

    11/11/2022, 1:02 PM
    I am trying to setup B2C demo shop in my Ubuntu 20.04
  • c

    calm-book-45174

    11/11/2022, 1:02 PM
    While running this command, I am getting this error
  • c

    calm-book-45174

    11/11/2022, 1:02 PM
    Copy code
    git clone git@github.com:spryker/docker-sdk.git docker
    s
    • 2
    • 1
  • c

    calm-book-45174

    11/11/2022, 1:03 PM
    Copy code
    @github.com:spryker/docker-sdk.git docker
    Cloning into 'docker'...
    <mailto:git@github.com|git@github.com>: Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
  • c

    calm-book-45174

    11/11/2022, 1:03 PM
    Am I missing anything in my configuration?
    a
    • 2
    • 2
  • c

    calm-toddler-60539

    11/11/2022, 1:38 PM
    Hello guys, I recently discovered that pushing and popping items to/from the Queue should only be done through Zed. Just for my knowledge, can someone please tell me what's the use of Client/Queue module? I am assuming the modules available in Client folder are supposed to be accessable by Glue, Zed and Yves. If Queue is supposed to be accessed by Zed only, why there is a Client module for it?
    p
    • 2
    • 1
  • c

    cool-beard-17954

    11/14/2022, 9:18 AM
    Hi there ! Did someone know how to create a first products category in the back-office ?
    c
    m
    • 3
    • 4
  • f

    full-potato-10807

    11/14/2022, 11:10 AM
    Hi Tam I am getting bellow errors , can anyone please help me with this ??
  • c

    calm-toddler-60539

    11/14/2022, 12:33 PM
    Hello all, I am trying to extend DataImport by creating my own Importer Module that imports data from the Queue. Everything works fine except the triggering of the Publishing event
    $this->addPublishEvents(...
    . Here is the code for the writer step:
    Copy code
    class AntelopeWriterStep extends PublishAwareStep implements DataSetWriterInterface
    {
        public const KEY_NAME = 'name';
        public const KEY_COLOR = 'color';
    
        use DataSetWriterPersistenceStateAwareTrait;
    
        /**
         * @throws PropelException
         * @throws AmbiguousComparisonException
         */
        public function write(DataSetInterface $dataSet)
        {
            $this->setDataSetWriterPersistenceState(false);
    
            $antelopeEntity = PyzAntelopeQuery::create()->filterByName($dataSet[static::KEY_NAME])->findOneOrCreate();
    
            $antelopeEntity->setColor($dataSet[static::KEY_COLOR]);
    
            if ($antelopeEntity->isNew() || $antelopeEntity->isModified()) {
                $antelopeEntity->save();
    
                // for publish event
                $this->addPublishEvents(
                    AntelopeEvents::ENTITY_PYZ_ANTELOPE_CREATE,
                    $antelopeEntity->getIdAntelope()
                );
            }
        }
    
        public function flush()
        {
            $this->setDataSetWriterPersistenceState(true);
        }
    }
    And here is how I am adding the writer step in the factory :
    Copy code
    public function getAntelopeQueueDataImporter(): DataImporter
        {
            /** @var DataImporter $dataImporter */
    
            $dataImporter = $this->createQueueDataImporter(
                $this->getConfig()->getAntelopeDataImporterConfiguration()
            );
    
    
            $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker();
    
            // validation step
            $dataSetStepBroker->addStep( $this->getAntelopeValidatorStep());
    
            // publisher step
            $dataSetStepBroker->addStep( $this->getAntelopePublisherStep());
    
            $dataImporter->addDataSetStepBroker($dataSetStepBroker);
    
            // writing step
            $dataImporter->setDataSetWriter(new AntelopeWriterStep());
    
            return $dataImporter;
        }
    Can you please tell me if this the right way to do it?
    p
    • 2
    • 9
  • r

    rough-agency-88294

    11/14/2022, 1:19 PM
    Is this documentation up to date? https://docs.spryker.com/docs/scos/dev/glue-api-guides/202204.0/glue-backend-api/how-to-guides/how-to-create-a-resource.html I'm trying to follow it but nothing happens. The old deprecated api extensions work
    👀 1
    p
    • 2
    • 2
  • d

    dry-dawn-42072

    11/14/2022, 2:02 PM
    Hi everyone, "The AOP Catalog, can not be displayed, because its technical configuration is incomplete. Please contact your Administrator!" in the "Apps" menu in the backoffice. Any clue ?
    a
    • 2
    • 3
  • d

    dry-dawn-42072

    11/14/2022, 2:54 PM
    Any clue ? (Docker desktop on MAC)
    p
    a
    • 3
    • 3
  • d

    dry-dawn-42072

    11/14/2022, 4:58 PM
    Any ideas how to "functionaly" Demo the composability of Spryker ?
    c
    • 2
    • 1
  • c

    calm-toddler-60539

    11/15/2022, 10:13 AM
    Hello all, I have been creating Glue modules but I see the
    RestResponseInterface
    that my Glue actions return will soon be depreciated. Can someone please advise me what is the alternative to this? For reference, please see the following code:
    Copy code
    public function getAction(RestRequestInterface $restRequest): RestResponseInterface // <--- This return type is depreciated
        {
            ...
            return (new RestResponse())->addResource($resource);
    a
    m
    • 3
    • 8
  • c

    clever-student-2834

    11/15/2022, 11:01 AM
    Hello Everyone, I am trying to get access_token for a backoffice user. I am using /access-tokens and /tokens. /access-tokens gives Invalid type(status 400) and /tokens gives invalid grant type. I have tried to follow documentation (https://docs.spryker.com/docs/scos/dev/feature-integration-guides/202204.0/glue-api/glue-backend-api/glue-api-authentication-integration.html#s[…]or) but this doesnt seem to help much. In my
    spy_oauth_client
    table I have a default
    frontend
    identifier but I would want the token to be generated for backoffice users. Am I missing any steps here. Or is there a resource I can refer to for the steps that are required to generate token for backoffice users? Thanks in Advance.!
  • r

    refined-artist-40095

    11/15/2022, 2:08 PM
    Hi did anyone encounter this error after changing data import to use flysystem s3 bucket? I haven't changed full_EU.yml, so every file should have path like
    /common/common/
    but here it doesn't look there. I know it reads some other files, because there are events published to queues and also
    company_business_unit_user.csv
    isn't the first entity in full_EU.yml(When I commented this out another csv file wasn't found). Does anyone know why it uses specified path only for some data entities?
    s
    • 2
    • 1
  • f

    fierce-agency-72925

    11/15/2022, 4:45 PM
    Hi I am trying to install B2B-DEMO-SHOP using docker. when I try to bootstrap with deploy.yml its working fine BUT when I try to bootstrap it using deploy.dev.yml and then I run command docker/sdk up I am getting error "Service database is not running. Please check the name". Please help me to know where I am doing wrong.
    s
    • 2
    • 2
1...717273...102Latest