fix sse error handling if shop api error part 2

This commit is contained in:
team2
2026-04-25 20:21:59 +02:00
parent cf970d2b49
commit 2044a465ad
3 changed files with 37 additions and 3 deletions

View File

@@ -49,7 +49,11 @@ final readonly class StoreApiClient
'sw-access-key' => $this->salesChannelAccessKey,
],
'body' => $body,
// Keep Shopware calls bounded. During SSE responses the browser only
// receives data between blocking HTTP calls, so long Store API waits
// can look like a broken stream to proxies or the browser.
'timeout' => $this->timeoutSeconds,
'max_duration' => max(1, $this->timeoutSeconds + 1),
]);
$statusCode = $response->getStatusCode();