-
Notifications
You must be signed in to change notification settings - Fork 457
Output bindings not registered #4335
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
Comments
@JamieMagee - generated function.json looks right. Can you please explain what do you mean by
cc @mhoeger for follow up |
@JamieMagee - I think what you're referring to is that the "bindings" object only contains the names and values of input / trigger type bindings. This is expected behavior as we've documented it (in our docs and in our TypeScript type definitions). We do also say to set output through
Is the ask to change it so that the output binding key name is there with a starting value of "undefined"? So when you inspect the context object, you see that output bindings should be assigned to? Another thing to note is that on context, there is a special http response object, "res", that sets http output in a way that is different from any other output binding type. If you look at the Admittedly.... it is very confusing and not very intuitively organized. Although we can't make a change in V2, can you tell us what your expectations were when you were trying to create an HTTP response? This is something we can improve in future major versions! |
Closing as resolved |
I'm unable to get any output bindings to work when debugging locally using Azure Functions core tools. That includes using the example functions
Investigative information
n/a (Debugging locally)
Repro steps
Debug the function attached at the bottom of the bug report.
context.bindings
only contains 1 binding, but it should include 2: An input and an output. Both bindings are correctly defined incontext.bindingDefinitions
.Trigger using
curl localhost:7071/api/HttpTrigger
Related information
Environment
Source
The text was updated successfully, but these errors were encountered: