GithubHelp home page GithubHelp logo

tdmalone / coffee-shop-message Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 3.0 535 KB

A little AWS Lambda function I've got hooked up to a Flic button at our fave coffee shop. Includes Terraform config for all necessary AWS resources.

License: MIT License

JavaScript 13.50% HCL 86.50%
api-gateway aws flic flic-buttons javascript js lambda node-js nodejs terraform tm-id-au

coffee-shop-message's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

coffee-shop-message's Issues

The refactor to external Lambda response library breaks the response

Re fd2d625:

This isn't in prod/master yet, but in dev it is triggering a 'Malformed Lambda proxy response' error at API Gateway, likely because the body isn't sent as a JSON string:

{"isBase64Encoded":false,"headers":{},"statusCode":200,"body":[{"ResponseMetadata":{"RequestId":"27f2cb59-34d0-5450-a437-9811e2ee48d5"},"MessageId":"d3ecba33-56c2-59f7-b570-e97b80fca572"},"ok"]}

The other issue here though, is we lost the custom 'Message sent, thanks guys!' that goes back to the coffee shop.

It might either be worth reverting fd2d625 before merging dev into master, or looking into a way to resolve this issue while still using the external dependency to build the proxy response.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.