This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Added circular JSON handling to forwardToMain #2242
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When connecting to a Direct Line Speech enabled bot, the Web Chat speech adapter object embedded in one of the redux payloads contained a circular JSON structure --
privRecoproperty -- that was causing theJSON.stringify()call inforwardToMain.tsto fail.This was ultimately causing the Redux action to fail, which resulted in an
undefinedspeech adapter object being sent to Web Chat. Web Chat could not complete the connection to the DL Speech channel.This PR adds error handling for this specific case, and will bypass forwarding the speech adapters update action over to the main process of the app. It is not needed in the main process's state store anyways.
All other errors will be thrown like normal.
As an example, here's what the error message looked like: