github-actions[bot] on gh-pages
deploy: 8ec3224e773ff6938ab446a⦠(compare)
willfarrell on main
docs: fix handler typo Merge pull request #842 from ga⦠(compare)
Cannot destructure property
httpContentNegotiationof 'undefined' or 'null'
error?
import middy from 'middy'
const {
httpContentNegotiation,
httpErrorHandler
} = middy.middlewares
const lovelyStuff = event => {
// do stuff
}
const handler = middy(lovelyStuff)
.use(httpContentNegotiation({ availableMediaTypes: ['application/json'] }))
.use(jsonBodyParser())
.use(httpErrorHandler())
export { handler }
'Event object failed validation'
would be possibly safer
ssm
middleware that is part of the core for ideas. My middleware works fine when I remove that single async call to S3. But with it I keep getting UnhandledPromiseRejectionWarning