-
Notifications
You must be signed in to change notification settings - Fork 100
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
Null input binding throws an exception #548
Null input binding throws an exception #548
Comments
Any idea on how to get started on fixing this? Do we know what code is causing this? |
Yes @maiqbal11 mentioned yesterday there is some validation code somewhere that we would remove to prevent this check which isn’t necessary |
We decode the data from Cosmos but right now we aren't checking for the case where the data in |
Running into this problem as well |
The fix has been merged to the python library, it will go with the next 1.0.5 release. |
When attempting to use an input binding to something like CosmosDB, if the input binding is empty (e.g. referencing an ID that isn't there), the function throws right away (with an error about not able to convert
NoneType
tofunc.Document
orstr
or whatever). However, with other languages like JavaScript, the function still executes, the input binding is just null. This prevents doing things like gracefully handling a null input binding and returning an error.https://stackoverflow.com/questions/57979944/azure-function-written-in-python-has-500-when-id-binding-points-doesnt-have-a
The text was updated successfully, but these errors were encountered: