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

SDK-type blob input binding not working #1100

Closed
liliankasem opened this issue Oct 5, 2022 · 0 comments
Closed

SDK-type blob input binding not working #1100

liliankasem opened this issue Oct 5, 2022 · 0 comments
Assignees
Labels
bug Something isn't working feature: sdk-bindings

Comments

@liliankasem
Copy link
Member

liliankasem commented Oct 5, 2022

For our SDK-type binding prototype, BlobInput is not using the reference type (ParameterBindingData). Sample:

[Function(nameof(BlobInputBindingFunction))]
public static async Task Run(
    [BlobTrigger("input-trigger/{name}")] string triggerItem,
    [BlobInput("input-container/sample1.txt", Connection = "AzureWebJobsStorage")] BlobClient client,
    FunctionContext context)
{
    var logger = context.GetLogger(nameof(BlobInputBindingFunction));
    var downloadResult = await client.DownloadContentAsync();
    var content = downloadResult.Value.Content.ToString();
    logger.LogInformation("Blob content: {content}", content);
}

The blob storage extension is only able to resolve the BlobTrigger, whilst the BlobInput returns null. You can see in the screenshot below that we get a BindingObject with all the correct information for the trigger parameter, but for the input parameter the object is null

Screen Shot 2022-10-04 at 5 52 25 PM

@liliankasem liliankasem added bug Something isn't working feature: sdk-bindings labels Oct 5, 2022
@liliankasem liliankasem changed the title SDK-type blob trigger and input binding not working together SDK-type blob input binding not working Oct 5, 2022
@liliankasem liliankasem self-assigned this Oct 5, 2022
@liliankasem liliankasem added this to the Functions Sprint 131 milestone Oct 5, 2022
@Azure Azure locked as resolved and limited conversation to collaborators Nov 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: sdk-bindings
Projects
None yet
Development

No branches or pull requests

1 participant