Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 14:54
    willfarrell commented #886
  • Aug 17 14:13
    willfarrell commented #887
  • Aug 17 08:13
    skined90 edited #887
  • Aug 17 08:12
    skined90 edited #887
  • Aug 17 08:02
    skined90 labeled #887
  • Aug 17 08:02
    skined90 opened #887
  • Aug 17 05:50
    Holi0317 opened #886
  • Aug 17 05:50
    Holi0317 labeled #886
  • Aug 16 14:02

    github-actions[bot] on gh-pages

    deploy: 979f81bd6da7788a18abf6c… (compare)

  • Aug 16 14:00
    willfarrell commented #885
  • Aug 16 14:00
    willfarrell closed #885
  • Aug 16 14:00

    willfarrell on main

    Update httpResponseSerializer d… Merge pull request #885 from ha… (compare)

  • Aug 16 09:11
    harish-lifex opened #885
  • Aug 13 04:12
    willfarrell closed #839
  • Aug 13 04:12
    willfarrell commented #839
  • Aug 13 04:06
    willfarrell closed #872
  • Aug 13 04:06
    willfarrell commented #872
  • Aug 13 04:04

    willfarrell on 3.2.0

    (compare)

  • Aug 13 04:04

    willfarrell on main

    ci: hide new ide Merge branch 'main' of https://… chore: version bump (compare)

  • Aug 13 03:56

    willfarrell on main

    feat: self-composing UseFN feat: inherited context propert… chore(lint): ts-standard --fix and 20 more (compare)

Luciano Mammino
@lmammino
Hello Everybody :)
Nikita Glushchenko
@NPCRUS
Hi man
Luciano Mammino
@lmammino
Hey @NPCRUS, how are you?
dkatavic
@dkatavic
Hello :)
Nikita Glushchenko
@NPCRUS
@lmammino I'm fine, and you?
Luciano Mammino
@lmammino
@NPCRUS Great, finalising a PR for a new middleware for content negotiation :)
Nikita Glushchenko
@NPCRUS
nice
Luciano Mammino
@lmammino
@NPCRUS now ready for review if you want to have a look: middyjs/middy#104
Joe Minichino
@techfort
Hello bastards and bitches
Luciano Mammino
@lmammino
we love you too @techfort :D
Joe Minichino
@techfort
On a serious note, I will probably start a repo for the Go version of muddy since I'm using go a lot now and aws have recently added go support to lambdas @lmammino
Luciano Mammino
@lmammino
That would be cool @techfort , do you want to open the repo under the middyjs organisation? you should have permission to do so
Doruk Kutlu
@d0ruk
hi there
i have trouble with bodyparser
const handler = middy(awesomeLogic)
  .use(jsonBodyParser())
  .use(cors());

export default handler;

async function awesomeLogic(evt, ctx) {
  // typeof evt.body === "string"
  // it's a POST evt with content-type: application/json
}
according to the src, middleware parses the body back into evt.body
thus i expect that to be typeof evt.body === "object"
what am i doing wrong?
Luciano Mammino
@lmammino
Hello @d0ruk, are you checking if your Content-Type headers are sent in canonical format (right casing)?
if you are not sure wheter they come in canonical format or not, you can use the httpHeaderNormalizer middleware before the jsonBodyParser.
Let me know if this fixes your problem
Doruk Kutlu
@d0ruk
that fixed it
thx
Luciano Mammino
@lmammino
You are welcome @d0ruk, glad it worked for you ;)
Doruk Kutlu
@d0ruk
is there a reference repo for middy integration? i.e. examples
Luciano Mammino
@lmammino
@d0ruk, Do you mean writing your own middlewares?
Doruk Kutlu
@d0ruk
no, i read the docs.md
i meant a repo where i can scan some code
Luciano Mammino
@lmammino
regarding middy internals or use cases?
Doruk Kutlu
@d0ruk
to gauge best practices
use cases
Luciano Mammino
@lmammino
@DavidWells created an example repo, it might be useful: https://github.com/DavidWells/middy-example
Doruk Kutlu
@d0ruk
cheers
Luciano Mammino
@lmammino
You are welcome, @d0ruk, let us know if there's anything that is not clear or that we can improve in your opinion :)
Doruk Kutlu
@d0ruk
will do
Jose Santacruz
@joseSantacruz
Hi all, quick serverless question is there a way to preview the generated cloud formation files without building all the artifacts??
Chanlito
@chanlito
I found middyjs today, and I have to say, thank you, to @lmammino & all the contributors.
Luciano Mammino
@lmammino
@chanlito, thanks to your for trying middy :)
@joseSantacruz did you figure it out a way? I know that serverless framework has a command to build a package but not publish it, that way you should be able to see the cloudformation files