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

Bug introduced when going from 2.0.3 to 2.1.1 #237

Closed
jcollum-nutrien opened this issue Aug 3, 2023 · 2 comments
Closed

Bug introduced when going from 2.0.3 to 2.1.1 #237

jcollum-nutrien opened this issue Aug 3, 2023 · 2 comments

Comments

@jcollum-nutrien
Copy link

Haven't fully tracked this down yet but I have a lambda local that I've been using reliably for months. Starts like this:

lambda-local -l index.js -h handler --envfile ../.env --watch --inspect

No issues. But we updated to 2.1.1 the other day and a working payload that looks like

{
  "event": {
    "action": "load",
    "payload": {
      "record": {        
        "name": "name_for_id_865dc2f8-f379-11e3-ae2b-3176bd53680f",      
        "sourceTimestamp": "2023-07-25T00:30:10.132Z"      
      },
      "messageId": "eaf60424-948c-4aa9-84bb-511bc59f6852"
    }
  }
}

is now giving me Zod errors for missing action property. But if I revert back to 2.0.3 that's not happening anymore. Was there a breaking change introduced in 2.1.1 ?

@gpotter2
Copy link
Collaborator

You're right this is a regression since it isn't tested. Will provide a fix soon.

@gpotter2
Copy link
Collaborator

Fixed in 2.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants