You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure to fork this template and run yarn generate in the terminal.
Please make sure Mesh package versions under package.json matches yours.
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Describe the bug
The combinations of applying transformations and using Response cache plugin, causes mangled responses. Commenting out either transformations or caching gives the correct response. This used to work up to the following versions contained in (yarn.lock.txt)
To Reproduce Steps to reproduce the behavior:
Unfortunately it's not possible to submit a reproducible sandbox as we're integrating with a 3rd party subgraph ContentStack which is not publicly accessible.
While configuring snapshot plugin, noticed additional file being snapshoted while performing the same query: mangled_snapshots.zip
as opposed to the snapshots when a valid response is returned: correct_snapshots.zip
The text was updated successfully, but these errors were encountered:
I'm facing this issue too, was able to reproduce by using the response-cache plugin and the encapsulate transform with a single source. If there are 2 or more sources the issue is no longer present:
Sorry for the late response!
It doesn't happen on the single source because we don't apply stitching and forward requests directly to the single source's executor, and when cache hits, response cache plugin stops execution with result without applying the transforms after. So this causes you get the raw result. This would be solved after this PR gets merged; n1ru4l/envelop#2093
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Github,
Stackblitz
or
CodeSandbox
Describe the bug
The combinations of applying transformations and using Response cache plugin, causes mangled responses. Commenting out either transformations or caching gives the correct response. This used to work up to the following versions contained in (yarn.lock.txt)
To Reproduce Steps to reproduce the behavior:
Unfortunately it's not possible to submit a reproducible sandbox as we're integrating with a 3rd party subgraph ContentStack which is not publicly accessible.
mesh-config.txt
Query:
Expected response:
Mangled Response:
Expected behaviour
Environment:
Additional context
While configuring snapshot plugin, noticed additional file being snapshoted while performing the same query:
mangled_snapshots.zip
as opposed to the snapshots when a valid response is returned:
correct_snapshots.zip
The text was updated successfully, but these errors were encountered: