Skip to content

Give clear error about a malformed config or template.yaml when loading the Mock Lambda Test Tool #1376

Closed

Description

@bzuillsmith

Describe the feature

If the template.yaml is invalid, let the test tool show me an error rather than just not load any configs or functions into the dropdowns.

Use Case

If the Mock Lambda Test Tool fails to load, it doesn't really give a clear indicator as to why. In my case, I had an extra space in my template.yaml, but I thought it was a complete different problem for almost a whole day. Probably a rookie mistake, but would appreciate a clear helpful error to tell me next time.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS .NET SDK and/or Package version used

.NET 6 Lambda Test Tool

Targeted .NET Platform

.NET 6

Operating System and version

Windows 11

Activity

  1. added
    feature-requestA feature should be added or improved.
    needs-triageThis issue or PR still needs to be triaged.
    on Dec 1, 2022
  2. ashishdhingra commented on Dec 1, 2022

    @ashishdhingra
    Contributor

    Sounds like a valid ask to improve error messaging and may be provide some fallback option. Needs review with the team.

  3. added
    p2This is a standard priority issue
    and removed
    needs-triageThis issue or PR still needs to be triaged.
    on Dec 1, 2022
  4. dscpinheiro commented on Oct 20, 2026

    @dscpinheiro
    Contributor

    This does not occur on the new Amazon.Lambda.TestTool, which does not read template.yaml or serverless.yml; functions register themselves when they connect to the emulator.

    Please use that tool going forward.

  5. github-actions commented on Oct 20, 2026

    @github-actions
    Contributor

    Comments on closed issues are hard for our team to see.
    If you need more assistance, please either tag a team member or open a new issue that references this one.
    If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions