Backend Gateway not working on Local Environment
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:"
Comments
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 ⚖️ - 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
0 -
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 "Pyz\Zed\CompareProductApp\Communication\Controller\CompareProductAppListTransfer" 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...')
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 ⚖️ - 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" does not exist
You forgot to add it into the USE statement.
Hope this helps.
All the best,
Florian
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random