Backend Gateway not working on Local Environment

Spryker Solution Partner Posts: 10 🧑🏻‍🚀 - Cadet
edited May 2024 in Spryker Development

Hello Team,
We are calling backed gateway but unable to complete my request. Getting below error.

"Spryker \ Shared \ ZedRequest \ Client \ Exception \ RequestException (500)Failed to complete request with server authority http://backend-gateway.de.spryker.default.local. Configured with (SSL Disabled) backend-gateway.de.spryker.default.local: in /data/config/Shared/config_default.php. Error:"

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,117 ⚖️ - Guardians (admin)

    Heyhey,
    is any more stacktrace? Because this looks more like the default start part of the exception when you fail to call backend-gateway from yves/glue. normally somewhere in the trace you see the actual problem listed.

    All the best,

    Florian

  • Spryker Solution Partner Posts: 10 🧑🏻‍🚀 - Cadet

    Hello @fsmeier
    We are calling from yves.


    Below is the full trace:

    /data/vendor/spryker/zed-request/src/Spryker/Shared/ZedRequest/Client/AbstractHttpClient.php
    $requestTransfer = $this->createRequestTransfer($transferObject, $metaTransfers);
    $request = $this->createGuzzleRequest($pathInfo);

        try {
            $response = $this->sendRequest($request, $requestTransfer, $requestOptions);
        } catch (GuzzleRequestException $e) {
            $message = sprintf(
                static::ZED_REQUEST_ERROR,
                $request->getUri()->getScheme() . '://' . $request->getUri()->getAuthority(),
                $this->setSslStatusMessage(),
                $request->getUri()->getHost(),
                $request->getUri()->getPort(),
                $this->getConfigFilePathName(),
            );
            $response = $e->getResponse();
            if ($response) {
                $message .= PHP_EOL . PHP_EOL . $response->getBody();
            }
    
            $requestException = new RequestException($message, $e->getCode(), $e);
    
            $this->logException($requestException);
    
            throw $requestException;
        }
        $responseTransfer = $this->getTransferFromResponse($response, $request);
    
        return $responseTransfer;
    }
    
    /**
     * @param \Throwable $throwable
     *
     * @return void
     */
    protected function logException(Throwable $throwable): void
    {
        ErrorLogger::getInstance()->log($throwable);
    }
    

    Arguments
    """
    Failed to complete request with server authority https://backend-gateway.de.spryker.default.local.
    Configured with (SSL Enabled) backend-gateway.de.spryker.default.local: in /data/config/Shared/config_default.php. Error: Stacktrace:

    <div style="font-family: Helvetica, Arial, sans-serif; font-size: 14px"><h1>ZED Exception</h1><div style="background: #dadada; padding: 5px"><font style="12"><b>ReflectionException - Class &quot;Pyz\Zed\CompareProductApp\Communication\Controller\CompareProductAppListTransfer&quot; does not exist</b></font></div><p>in /data/vendor/spryker/zed-request/src/Spryker/Zed/ZedRequest/Communication/Plugin/GatewayControllerListenerPlugin.php (280)</p><p><b>Url:</b>/compare-product-app/gateway/save-compare-product-app-list</p><p><b>Trace:</b></p><pre>#0 /data/vendor/spryker/zed-request/src/Spryker/Zed/ZedRequest/Communication/Plugin/GatewayControllerListenerPlugin.php(280): ReflectionClass->__construct('Pyz\\Zed\\Compare...')

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,117 ⚖️ - Guardians (admin)

    Heyhey,
    still not everything but I already guess its something in the "CompareProductApp" module of your Zed.

    Read the message carefully, there is somewhere written: Pyz\Zed\CompareProductApp\Communication\Controller\CompareProductAppListTransfer&quot; does not exist

    You forgot to add it into the USE statement.

    Hope this helps.

    All the best,

    Florian

Welcome!

It looks like you're new here. Sign in or register to get started.