-
Notifications
You must be signed in to change notification settings - Fork 3
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
[#IP-368] table service unhandled exception #197
[#IP-368] table service unhandled exception #197
Conversation
Example of PR titles that include pivotal stories:
Generated by 🚫 dangerJS |
bb341f8
to
7fffcd4
Compare
Should we assume such methods return |
Yes, but a specific typings is uneffective without |
I don't see this solution to be solid, either. Consider the usage in here: const { e1: resultOrError, e2: sResponse } = await insertEntityHandler(/* ... */) as a matter of fact, |
This is a very good point. I try to handle better possible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I've added a couple of test scenarios in here, just to be sure.
I think the solution is solid enough for our needs.
List of Changes
response.isSuccessful
only when Error falsyMotivation and Context
On some scenarios the Azure table service returns an Error and a
null
response to the callbacks ofinsertEntity
anddeleteEntity
. When this happens our code throw an unhandled exception trying to access toresponse.isSuccessful
.Application insights logs show the following error:
The same error could occurs on
functions-admin
,functions-cgn
,functions-services
.How Has This Been Tested?
unit test
Screenshots (if appropriate):
Types of changes