Giter Club home page Giter Club logo

failure-lambda's Issues

Exception returns successfully

When setting 'failureMode' to 'exception' the Lambda function returns successfully, an exception occurs but the Lambda function succeeds.

START RequestId: 303ca17f-a63c-44ce-a38e-9236e3db57c2 Version: $LATEST
2020-02-07T14:18:14.839Z	303ca17f-a63c-44ce-a38e-9236e3db57c2	INFO	Injecting exception message: Exception message!
2020-02-07T14:18:14.852Z	303ca17f-a63c-44ce-a38e-9236e3db57c2	INFO	Error: Exception message!
    at Runtime.handler (/var/task/node_modules/failure-lambda/lib/failure.js:31:17)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)END RequestId: 303ca17f-a63c-44ce-a38e-9236e3db57c2
REPORT RequestId: 303ca17f-a63c-44ce-a38e-9236e3db57c2	Duration: 142.89 ms	Billed Duration: 200 ms	Memory Size: 128 MB	Max Memory Used: 96 MB	

I would have expected a thrown exception to cause the Lambda function to fail.

Feature Request: deny access to service dependencies

It would be great to be able to simulate failure of a service dependency (access to DynamoDB for example). This could be simulated through manipulation of IAM roles / permissions but it would be great to be able to extend this to other network dependencies (MongoDB connectivity, other microservices, etc).

Would it make sense to configure failure-lambda to simulate the failure of a network dependency through interception of the network calls?

Unable to deploy a lambda on AWS after including failure-lambda library

We are getting following error message while trying to deploy a lambda via CF template on AWS after including failure-lambda library.

UPDATE_FAILED: Resource handler returned message: "Unzipped size must be smaller than 262144000 bytes (Service: Lambda, Status Code: 400)

Can you please help?

mitm.bypass() stops working after changing the event name in the handler.

I would like to ask why the event was changed to the connection in this commit ae590c8f7b73b1eec64ab2460b0987df03d4cddc ?

The current change is quite crucial, while it breaks the logic of usingsocket.bypass(). When we start relying on the connection event, then it's not possible to bypass the mitm hook and continue the origin request, because the check of bypassed flag in mitm is done on the connect event.
mitm.connect

I am looking forward to your 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.