genesyscloud-client-app-sdk is throwing a redirect loop when handling screen pops from an Architect flow - it’s happening intermittently, maybe 1 in 5 attempts. The flow uses a Screen Pop action pointing to a URL parameter, which we then parse in the client app to construct the final destination URL.
The logic looks like this:
client.on('session.stateChanged', (event) => {
if (event.state === 'connected') {
const urlParam = event.data.screenPopUrl;
const destinationUrl = constructFinalUrl(urlParam);
client.sendApiRequest('POST', '/interactions/web-messaging/guest-sessions', {url: destinationUrl});
}
});
We’re on SDK version 3.3.25. The interaction history shows the initial request to /interactions/web-messaging/guest-sessions succeeds, then the API immediately redirects back to the same endpoint with a 302 - and the client app just keeps re-triggering the sendApiRequest. It’s like the guest session isn’t registering properly. Any thoughts?