Comments (5)
Lambdarest was made with our stack in focus, we use Cloudwatch and therefore i chose to catch and log
instead of elevating exceptions since that would lay off responsibility of replies to Amazon Api Gateway. In general i wanted as much control in my lambda as possible.
But that could be solved by using the pattern flask
and connexion
is using (if i remember correctly) of specifying the errorhandler during initialization of lambda_handler
.
We could:
lambda_handler = create_lambda_handler(error_handler=None)
Here lambda_handler
would raise all errors.
What do you think?
from python-lambdarest.
Great idea! If I understand correctly, the create_lambda_handler()
function would have a default error_handler
to replicates the behavior of the old exception handling. If set to None
, we would just raise the exception.
I implemented this here.
from python-lambdarest.
Awesome, exactly! and i find the solution just as i would have written it. Great work!
I have some feedback (relayed from review of PR):
Can you:
bump the version number in init.py and setup.py to 2.2.6 and write an entry in HISTORY about the change ?
kind regards
Johannes Valbjorn
from python-lambdarest.
thanks, i should have created some guidelines mentioning the manual version stuff.
Merged
from python-lambdarest.
Hi, there I had the same problem and just stumbled across this issue. I agree with the default behavior, because it makes it very easy to get started. However, I think this behavior is worth mentioning in the README, since I had to spend quite some time to figure our why my except
block was not being executed.
I will contribute a PR in the next few days.
from python-lambdarest.
Related Issues (20)
- Briefly mention in README how to setup api-gateway for Lambdarest lambda HOT 5
- Optimize jsonschema HOT 1
- If supported, add clearer documentation for headers HOT 2
- Remove py27 support since end-of-life HOT 4
- articles about lambdarest
- Trouble installing with pip HOT 5
- [BUG] multiValueHeaders not being sent back (ALB) HOT 5
- [Question/BUG] Query Parameters converted to float HOT 9
- support for multiValueQueryStringParameters HOT 1
- fix github releases HOT 1
- isBase64_encoded only handled if application_load_balancer is True HOT 4
- [Guestbook] 2021 status of Lambdarest, call to all users! HOT 4
- [Feature Request] ALB Custom Scopes HOT 2
- Invalid JSON causes Lambda function to 500 HOT 1
- Options for configuring CORS and preflight requests HOT 5
- use github actions instead of travis HOT 1
- [Feature Request] Add support for form submission HOT 4
- [BUG] fix problem with werkzeug.routing HOT 2
- [ENHANCEMENT] Support Lambda Function URLs HOT 2
- Versions prior to v13 on PyPI HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-lambdarest.