Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appsync Mock: Util.error or #return continues execution of pipeline and resolvers. #6640

Closed
mgarabedian opened this issue Feb 16, 2021 · 2 comments
Assignees
Labels
bug Something isn't working mock Issues tied to the mock functionality pending-release Code has been merged but pending release

Comments

@mgarabedian
Copy link

Describe the bug
As of version 4.42.0 and above, appsync simulator is not aborting on #return or $util.error. My pipeline functions continue to execute after an error is thrown, all the way until the resolver template. If I downgrade to 4.41.2, the problem is gone.

Amplify CLI Version
Affecting 4.42.0 and 4.43.0

To Reproduce
Throw an exception in a vtl template. $util.error("ERROR"). It will continue to execute future pipeline and resolvers.

Expected behavior
Prevents subsequent functions from being executed.

Desktop (please complete the following information):

  • OS: Mac
  • Node Version. v14.2.0
@yuth yuth added bug Something isn't working mock Issues tied to the mock functionality labels Feb 16, 2021
@edwardfoyle edwardfoyle added the pending-release Code has been merged but pending release label Mar 4, 2021
@kaustavghosh06
Copy link
Contributor

Fix for this issue was merged and released in the latest version of the CLI.

@cjihrig cjihrig self-assigned this Mar 21, 2021
@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working mock Issues tied to the mock functionality pending-release Code has been merged but pending release
Projects
None yet
Development

No branches or pull requests

5 participants