Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerlessHandler: error handling for URI parsing #2821

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

fallwith
Copy link
Contributor

To address issues with the recent serverless enhancements discovered through local dev testing with the Node.js tool 'serverless':

  • Don't append a port value to a URI string that already contains one
  • If the URI string construction or parsing fails for any reason, log an error and return nil so that further processing of the function invocation is not impacted

These issues are thought to only be reproducible outside of AWS, but it's good to be proactive with a bit of extra caution.

To address issues with the recent serverless enhancements discovered
through local dev testing with the Node.js tool 'serverless':

- Don't append a port value to a URI string that already contains one
- If the URI string construction or parsing fails for any reason, log an
  error and return `nil` so that further processing of the function
  invocation is not impacted

These issues are thought to only be reproducible outside of AWS, but
it's good to be proactive with a bit of extra caution.
simply say "without AWS" to refer to local testing
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 93.8% 93%
Branch 70.37% 50%

@fallwith fallwith merged commit 7965561 into dev Aug 19, 2024
32 checks passed
@fallwith fallwith deleted the james_best_face_barney_kessel_hands branch August 19, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants